pub struct ReflectedStruct {
pub name: String,
pub size: usize,
pub fields: Vec<ReflectedField>,
}Expand description
A struct layout as reflected from a compiled user shader. Backend-neutral so
the comparison stays Metal-free; shader_reflect.rs fills it from Metal
pipeline reflection, and the unit tests fill it by hand.
Fields§
§name: StringThe struct type name the shader declared at this binding.
size: usizeThe binding’s data size in bytes (struct size, or element stride for a pointer/array binding).
fields: Vec<ReflectedField>The fields reflection reported, in declaration order.
Trait Implementations§
Source§impl Clone for ReflectedStruct
impl Clone for ReflectedStruct
Source§fn clone(&self) -> ReflectedStruct
fn clone(&self) -> ReflectedStruct
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReflectedStruct
impl Debug for ReflectedStruct
Source§impl PartialEq for ReflectedStruct
impl PartialEq for ReflectedStruct
impl StructuralPartialEq for ReflectedStruct
Auto Trait Implementations§
impl Freeze for ReflectedStruct
impl RefUnwindSafe for ReflectedStruct
impl Send for ReflectedStruct
impl Sync for ReflectedStruct
impl Unpin for ReflectedStruct
impl UnsafeUnpin for ReflectedStruct
impl UnwindSafe for ReflectedStruct
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