Module shader

Module shader 

Source
Expand description

Contains everything you need to make some cool shaders including the Shader and UniformData types.

Structs§

Shader
An internal representation of an WGSL Shader. Under the hood this creates a new pipeline with or without the support for any extra uniforms. To be utilze the shader it must be added to a material
ShaderOptions
ShaderOptions controlls the layout of your shader and wether or not you want extra uniforms like a texture or a uniform buffer
UniformData
UniformData contains the byte data of any struct that implements ShaderType which can be derived. This data needs to be added to ShaderOptions.

Enums§

UniformError