pub trait ShaderSize: ShaderType {
    const SHADER_SIZE: NonZeroU64 = _;
}
Expand description

Trait implemented for all WGSL fixed-footprint types

Provided Associated Constants§

source

const SHADER_SIZE: NonZeroU64 = _

Represents WGSL Size (equivalent to ShaderType::min_size)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ShaderSize for Option<NonZeroI32>

source§

impl ShaderSize for Option<NonZeroU32>

source§

impl ShaderSize for f32

source§

impl ShaderSize for i32

source§

impl ShaderSize for u32

source§

impl ShaderSize for Wrapping<i32>

source§

impl ShaderSize for Wrapping<u32>

source§

impl ShaderSize for AtomicI32

source§

impl ShaderSize for AtomicU32

source§

impl<T> ShaderSize for &T
where T: ShaderSize + ?Sized,

source§

const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE

source§

impl<T> ShaderSize for &mut T
where T: ShaderSize + ?Sized,

source§

const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE

source§

impl<T> ShaderSize for Cell<T>
where T: Copy + ShaderSize + ?Sized,

source§

const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE

source§

impl<T, const N: usize> ShaderSize for [T; N]
where T: ShaderSize,

Implementors§

source§

impl ShaderSize for Color

source§

impl ShaderSize for Mat2
where f32: ShaderSize,

source§

impl ShaderSize for Mat3
where f32: ShaderSize,

source§

impl ShaderSize for Mat4
where f32: ShaderSize,

source§

impl ShaderSize for Vec2
where f32: ShaderSize,

source§

impl ShaderSize for Vec3
where f32: ShaderSize,

source§

impl ShaderSize for Vec4
where f32: ShaderSize,

source§

impl ShaderSize for IVec2
where i32: ShaderSize,

source§

impl ShaderSize for IVec3
where i32: ShaderSize,

source§

impl ShaderSize for IVec4
where i32: ShaderSize,

source§

impl ShaderSize for UVec2
where u32: ShaderSize,

source§

impl ShaderSize for UVec3
where u32: ShaderSize,

source§

impl ShaderSize for UVec4
where u32: ShaderSize,

source§

impl ShaderSize for PbrDeferredLightingDepthId
where u32: ShaderSize,

source§

impl ShaderSize for GpuDirectionalCascade

source§

impl ShaderSize for GpuDirectionalLight

source§

impl ShaderSize for GpuFog

source§

impl ShaderSize for GpuLights

source§

impl ShaderSize for GpuPointLight

source§

impl ShaderSize for GpuPointLightsUniform

source§

impl ShaderSize for LightProbesUniform
where [RenderLightProbe; 8]: ShaderSize, i32: ShaderSize, u32: ShaderSize, f32: ShaderSize,

source§

impl ShaderSize for MeshUniform

source§

impl ShaderSize for PreviousViewProjection

source§

impl ShaderSize for StandardMaterialUniform

source§

impl ShaderSize for ColorMaterialUniform

source§

impl ShaderSize for Mesh2dUniform

source§

impl ShaderSize for GlobalsUniform

source§

impl ShaderSize for ColorGrading
where f32: ShaderSize,

source§

impl ShaderSize for ViewUniform

source§

impl ShaderSize for ArrayLength

source§

impl<T> ShaderSize for Cow<'_, T>
where T: ToOwned<Owned = T> + ShaderSize + ?Sized,

source§

const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE

source§

impl<T> ShaderSize for Box<T>
where T: ShaderSize + ?Sized,

source§

const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE

source§

impl<T> ShaderSize for Rc<T>
where T: ShaderSize + ?Sized,

source§

const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE

source§

impl<T> ShaderSize for Arc<T>
where T: ShaderSize + ?Sized,

source§

const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE