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", so this trait is not object safe.