Struct vulkano::shader::SpecializationMapEntry
source · [−]#[repr(C)]pub struct SpecializationMapEntry {
pub constant_id: u32,
pub offset: u32,
pub size: usize,
}
Expand description
Describes an individual constant to set in the shader. Also a field in the struct.
Fields
constant_id: u32
Identifier of the constant in the shader that corresponds to this field.
For SPIR-V, this must be the value of the SpecId
decoration applied to the specialization
constant.
For GLSL, this must be the value of N
in the layout(constant_id = N)
attribute applied
to a constant.
offset: u32
Offset within the struct where the data can be found.
size: usize
Size of the data in bytes. Must match the size of the constant (4
for booleans).
Trait Implementations
sourceimpl Clone for SpecializationMapEntry
impl Clone for SpecializationMapEntry
sourcefn clone(&self) -> SpecializationMapEntry
fn clone(&self) -> SpecializationMapEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SpecializationMapEntry
impl Debug for SpecializationMapEntry
sourceimpl From<SpecializationMapEntry> for SpecializationMapEntry
impl From<SpecializationMapEntry> for SpecializationMapEntry
sourcefn from(val: SpecializationMapEntry) -> Self
fn from(val: SpecializationMapEntry) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SpecializationMapEntry> for SpecializationMapEntry
impl PartialEq<SpecializationMapEntry> for SpecializationMapEntry
sourcefn eq(&self, other: &SpecializationMapEntry) -> bool
fn eq(&self, other: &SpecializationMapEntry) -> bool
impl Copy for SpecializationMapEntry
impl Eq for SpecializationMapEntry
impl StructuralEq for SpecializationMapEntry
impl StructuralPartialEq for SpecializationMapEntry
Auto Trait Implementations
impl RefUnwindSafe for SpecializationMapEntry
impl Send for SpecializationMapEntry
impl Sync for SpecializationMapEntry
impl Unpin for SpecializationMapEntry
impl UnwindSafe for SpecializationMapEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more