Skip to content

Engine → Renderer

shader_asset.h

Shader programs. In v1 only the built-in programs exist. built_in_programs() is the one list of shaders the renderer loads: renderer::create finds the program of every pipeline (and, in editor builds, of the Dear ImGui backend) with find_built_in() and checks it with validate() before it creates a device shader of it, so a program missing here or a stage missing from the shader library's index fails creation with renderer_error::SHADER_NOT_FOUND. The list is not what the build compiles: that is engine/shaders/CMakeLists.txt, which the tests hold against this one in both directions. Custom user materials through shader_asset are future work.

Structs

File Description
shader_program_desc

Classes

File Description
shader_asset