Skip to main content

Module shader

Module shader 

Source
Expand description

The Shader asset: the authored schema (Shader, ShaderStage, and the ShaderPrograms container the cook fills), and the Component impl. The compile lives in concinnity-cook (compile::shader); which programs a world shader compiles to is render::slang_programs::surface.

Structs§

Shader
Replaces how surfaces are shaded, and optionally how vertices are placed, with functions of your own. Written in Slang, one source for every backend.
ShaderPrograms
The compiled payload a Shader carries in the blob: the authored files and every program the cook compiled from them. Written by the cook, decoded once by the renderer at load.

Enums§

ShaderStage
One of the two files a Shader declares.