ShaderUniformType
enum · ferroui-base · v0.5.0
enum ShaderUniformType
The type of a uniform of the convention.
Members
Float
Float
float (WGSL f32).
Float2
Float2
float2 (WGSL vec2<f32>).
Float4
Float4
float4 (WGSL vec4<f32>).
Int
Int
int (WGSL i32).
sksl
fn sksl(self: Self) -> &'static str
The name of the type in SkSL.
wgsl
fn wgsl(self: Self) -> &'static str
The name of the type in WGSL.
components
fn components(self: Self) -> usize
The number of scalars of the type.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.