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.
Implementations on Foreign Types§
impl ShaderSize for Option<NonZero<i32>>
impl ShaderSize for Option<NonZero<u32>>
impl ShaderSize for f32
impl ShaderSize for i32
impl ShaderSize for u32
impl ShaderSize for LinearRgba
Available on crate feature
encase only.