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§
source§impl Clone for SpecializationMapEntry
impl Clone for SpecializationMapEntry
source§fn clone(&self) -> SpecializationMapEntry
fn clone(&self) -> SpecializationMapEntry
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 moresource§impl Debug for SpecializationMapEntry
impl Debug for SpecializationMapEntry
source§impl From<SpecializationMapEntry> for SpecializationMapEntry
impl From<SpecializationMapEntry> for SpecializationMapEntry
source§fn from(val: SpecializationMapEntry) -> Self
fn from(val: SpecializationMapEntry) -> Self
Converts to this type from the input type.