Module encase

Source

Modules§

internal
matrix
Module containing items necessary to implement ShaderType for matrices
rts_array
Module containing items necessary to implement ShaderType for runtime-sized arrays
vector
Module containing items necessary to implement ShaderType for vectors

Macros§

impl_matrix
Used to implement ShaderType for the given matrix type
impl_rts_array
Used to implement ShaderType for the given runtime-sized array type
impl_vector
Used to implement ShaderType for the given vector type
impl_wrapper
Used to implement ShaderType for the given wrapper type

Structs§

ArrayLength
Helper type meant to be used together with the ShaderType derive macro
DynamicStorageBuffer
Dynamic storage buffer wrapper facilitating RW operations
DynamicUniformBuffer
Dynamic uniform buffer wrapper facilitating RW operations
StorageBuffer
Storage buffer wrapper facilitating RW operations
UniformBuffer
Uniform buffer wrapper facilitating RW operations

Traits§

CalculateSizeFor
Trait implemented for WGSL runtime-sized arrays and WGSL structs containing runtime-sized arrays (non fixed-footprint types)
ShaderSize
Trait implemented for all WGSL fixed-footprint types
ShaderType
Base trait for all WGSL host-shareable types

Derive Macros§

ShaderType