#[repr(C)]pub struct TypedBuffer<T: ?Sized> { /* private fields */ }
Expand description
Explicit (uniform/storage) buffer handle for descriptor indexing.
Examples (for an #[spirv(storage_buffer)]
-annotated entry-point parameter):
buffer: &[u32]
(implicit, 1 buffer)buffer: &TypedBuffer<[u32]>
(explicit, one buffer)buffers: &RuntimeArray<TypedBuffer<[u32]>>
(explicit, many buffers)
Trait Implementations§
Source§impl<T> Deref for TypedBuffer<[T]>
impl<T> Deref for TypedBuffer<[T]>
Source§impl<T> Deref for TypedBuffer<T>
impl<T> Deref for TypedBuffer<T>
Source§impl<T> DerefMut for TypedBuffer<[T]>
impl<T> DerefMut for TypedBuffer<[T]>
Auto Trait Implementations§
impl<T> Freeze for TypedBuffer<T>where
T: ?Sized,
impl<T> RefUnwindSafe for TypedBuffer<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for TypedBuffer<T>
impl<T> Sync for TypedBuffer<T>
impl<T> Unpin for TypedBuffer<T>
impl<T> UnwindSafe for TypedBuffer<T>where
T: UnwindSafe + ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more