Struct spirv_cross2::compile::msl::ShaderInterfaceVariable
source · pub struct ShaderInterfaceVariable {
pub builtin: Option<BuiltIn>,
pub vecsize: Option<NonZeroU32>,
pub format: ShaderVariableFormat,
pub rate: ShaderVariableRate,
}Expand description
Defines MSL characteristics of a shader interface variable.
Fields§
§builtin: Option<BuiltIn>The builtin for the variable, if any.
vecsize: Option<NonZeroU32>The vecsize for this variable, if applicable.
If vecsize is Some, it must be greater than or equal to the vecsize declared in the shader,
or behavior in the generated shader is undefined.
format: ShaderVariableFormatThe format of a shader interface variable.
rate: ShaderVariableRateIndicates the rate at which a variable changes value.
Trait Implementations§
source§impl Clone for ShaderInterfaceVariable
impl Clone for ShaderInterfaceVariable
source§fn clone(&self) -> ShaderInterfaceVariable
fn clone(&self) -> ShaderInterfaceVariable
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 ShaderInterfaceVariable
impl Debug for ShaderInterfaceVariable
source§impl Hash for ShaderInterfaceVariable
impl Hash for ShaderInterfaceVariable
source§impl PartialEq for ShaderInterfaceVariable
impl PartialEq for ShaderInterfaceVariable
impl Eq for ShaderInterfaceVariable
impl StructuralPartialEq for ShaderInterfaceVariable
Auto Trait Implementations§
impl Freeze for ShaderInterfaceVariable
impl RefUnwindSafe for ShaderInterfaceVariable
impl Send for ShaderInterfaceVariable
impl Sync for ShaderInterfaceVariable
impl Unpin for ShaderInterfaceVariable
impl UnwindSafe for ShaderInterfaceVariable
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)