Trait bevy::render::render_resource::encase::ShaderSize

pub trait ShaderSize: ShaderType {
    const SHADER_SIZE: NonZero<u64> = _;
}
Expand description

Trait implemented for all WGSL fixed-footprint types

Provided Associated Constants§

const SHADER_SIZE: NonZero<u64> = _

Represents WGSL Size (equivalent to ShaderType::min_size)

Object Safety§

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 Wrapping<i32>

§

impl ShaderSize for Wrapping<u32>

§

impl ShaderSize for AtomicI32

§

impl ShaderSize for AtomicU32

§

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

§

const SHADER_SIZE: NonZero<u64> = T::SHADER_SIZE

§

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

§

const SHADER_SIZE: NonZero<u64> = T::SHADER_SIZE

§

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

§

const SHADER_SIZE: NonZero<u64> = T::SHADER_SIZE

§

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

§

const SHADER_SIZE: NonZero<u64> = T::SHADER_SIZE

§

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

§

const SHADER_SIZE: NonZero<u64> = T::SHADER_SIZE

§

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

§

const SHADER_SIZE: NonZero<u64> = T::SHADER_SIZE

§

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

§

const SHADER_SIZE: NonZero<u64> = T::SHADER_SIZE

§

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

Implementors§

§

impl ShaderSize for LinearRgba

§

impl ShaderSize for DepthOfFieldUniform

§

impl ShaderSize for MotionBlur

§

impl ShaderSize for PreviousViewData

§

impl ShaderSize for SmaaInfoUniform

§

impl ShaderSize for Mat2
where f32: ShaderSize,

§

impl ShaderSize for Mat3
where f32: ShaderSize,

§

impl ShaderSize for Mat4
where f32: ShaderSize,

§

impl ShaderSize for Vec2
where f32: ShaderSize,

§

impl ShaderSize for Vec3
where f32: ShaderSize,

§

impl ShaderSize for Vec4
where f32: ShaderSize,

§

impl ShaderSize for IVec2
where i32: ShaderSize,

§

impl ShaderSize for IVec3
where i32: ShaderSize,

§

impl ShaderSize for IVec4
where i32: ShaderSize,

§

impl ShaderSize for UVec2
where u32: ShaderSize,

§

impl ShaderSize for UVec3
where u32: ShaderSize,

§

impl ShaderSize for UVec4
where u32: ShaderSize,

§

impl ShaderSize for PbrDeferredLightingDepthId
where u32: ShaderSize,

§

impl ShaderSize for GpuClusterableObject

§

impl ShaderSize for GpuClusterableObjectsUniform

§

impl ShaderSize for GpuDirectionalCascade

§

impl ShaderSize for GpuDirectionalLight

§

impl ShaderSize for GpuFog

§

impl ShaderSize for GpuLights

§

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

§

impl ShaderSize for MeshCullingData

§

impl ShaderSize for MeshInputUniform

§

impl ShaderSize for MeshUniform

§

impl ShaderSize for ScreenSpaceReflectionsUniform

§

impl ShaderSize for StandardMaterialUniform

§

impl ShaderSize for VolumetricFogUniform

§

impl ShaderSize for ColorMaterialUniform

§

impl ShaderSize for Mesh2dUniform

§

impl ShaderSize for IndirectParameters
where u32: ShaderSize,

§

impl ShaderSize for PreprocessWorkItem
where u32: ShaderSize,

§

impl ShaderSize for GlobalsUniform

§

impl ShaderSize for ViewUniform

§

impl ShaderSize for ArrayLength