pub struct ShaderInterfaceVariable {
pub builtin: Option<BuiltIn>,
pub vecsize: Option<NonZeroU32>,
pub format: ShaderVariableFormat,
pub rate: ShaderVariableRate,
}Available on crate feature
msl only.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 duplicate 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