Skip to main content

Module shader

Module shader 

Source
Expand description

The Shader asset: the authored schema (Shader, StageSource, ShaderKind, and the ShaderPayload container), the Component impl, and the StageSource::source_for selection the engine init and hot-reload paths use. The JSON-args source selection and validation live in concinnity-cook (authoring::source_args, check::shader).

Structs§

Shader
Declares a custom shader program: the vertex and fragment stages, plus the optional GPU-instanced vertex stage.
ShaderPayload
The compiled payload a Shader carries in the blob: every compiled stage, tagged by kind. Written by the cook, decoded once by the renderer at load.
StageSource
Source declaration for one stage of a Shader.

Enums§

ShaderKind
A stage slot within a Shader.