pub trait ShaderSize: ShaderType {
const SHADER_SIZE: NonZero<u64> = _;
}Expand description
Trait implemented for all WGSL fixed-footprint types
Provided Associated Constants§
Sourceconst SHADER_SIZE: NonZero<u64> = _
const SHADER_SIZE: NonZero<u64> = _
Represents WGSL Size (equivalent to ShaderType::min_size)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl ShaderSize for Atomic<i32>
impl ShaderSize for Atomic<u32>
impl ShaderSize for IVec2where
i32: ShaderSize,
impl ShaderSize for IVec3where
i32: ShaderSize,
impl ShaderSize for IVec4where
i32: ShaderSize,
impl ShaderSize for LinearRgba
Available on crate feature
encase only.