pub struct BufferReflection<T> {
pub binding: T,
pub size: u32,
pub stage_mask: BindingStage,
}
Expand description
Reflection information for the Uniform Buffer or Push Constant Block
Fields§
§binding: T
The binding point for this buffer, if applicable
size: u32
The size of the buffer. Buffer sizes returned by reflection is always aligned to a 16 byte boundary.
stage_mask: BindingStage
The mask indicating for which stages the UBO should be bound.
Trait Implementations§
Source§impl<T: Clone> Clone for BufferReflection<T>
impl<T: Clone> Clone for BufferReflection<T>
Source§fn clone(&self) -> BufferReflection<T>
fn clone(&self) -> BufferReflection<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for BufferReflection<T>where
T: Freeze,
impl<T> RefUnwindSafe for BufferReflection<T>where
T: RefUnwindSafe,
impl<T> Send for BufferReflection<T>where
T: Send,
impl<T> Sync for BufferReflection<T>where
T: Sync,
impl<T> Unpin for BufferReflection<T>where
T: Unpin,
impl<T> UnwindSafe for BufferReflection<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more