Trait encase::ShaderSize

source ·
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 Mat3
where f32: ShaderSize,

source§

impl ShaderSize for Mat2
where f32: ShaderSize,

source§

impl ShaderSize for Mat4
where f32: ShaderSize,

source§

impl ShaderSize for Vec4
where f32: ShaderSize,

source§

impl ShaderSize for Vec2
where f32: ShaderSize,

source§

impl ShaderSize for Vec3
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 Wrapping<i32>

source§

impl ShaderSize for Wrapping<u32>

source§

impl ShaderSize for AtomicI32

source§

impl ShaderSize for AtomicU32

source§

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

source§

const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE

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

source§

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

source§

const SHADER_SIZE: NonZeroU64 = T::SHADER_SIZE

source§

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

Implementors§