Kohi Game Engine
|
Configuration for a shader. Typically created and destroyed by the shader resource loader, and set to the properties found in a .shadercfg resource file. More...
#include <resource_types.h>
Data Fields | |
char * | name |
The name of the shader to be created. More... | |
face_cull_mode | cull_mode |
The face cull mode to be used. Default is BACK if not supplied. More... | |
u32 | topology_types |
The topology types for the shader pipeline. See primitive_topology_type. Defaults to "triangle list" if unspecified. More... | |
u8 | attribute_count |
The count of attributes. More... | |
shader_attribute_config * | attributes |
The collection of attributes. Darray. More... | |
u8 | uniform_count |
The count of uniforms. More... | |
shader_uniform_config * | uniforms |
The collection of uniforms. Darray. More... | |
u8 | stage_count |
The number of stages present in the shader. More... | |
shader_stage * | stages |
The collection of stages. Darray. More... | |
char ** | stage_names |
The collection of stage names. Must align with stages array. Darray. More... | |
char ** | stage_filenames |
The collection of stage file names to be loaded (one per stage). Must align with stages array. Darray. More... | |
u32 | flags |
The flags set for this shader. More... | |
Configuration for a shader. Typically created and destroyed by the shader resource loader, and set to the properties found in a .shadercfg resource file.
u8 attribute_count |
The count of attributes.
shader_attribute_config* attributes |
The collection of attributes. Darray.
face_cull_mode cull_mode |
The face cull mode to be used. Default is BACK if not supplied.
u32 flags |
The flags set for this shader.
char* name |
The name of the shader to be created.
u8 stage_count |
The number of stages present in the shader.
char** stage_filenames |
The collection of stage file names to be loaded (one per stage). Must align with stages array. Darray.
char** stage_names |
The collection of stage names. Must align with stages array. Darray.
shader_stage* stages |
The collection of stages. Darray.
u32 topology_types |
The topology types for the shader pipeline. See primitive_topology_type. Defaults to "triangle list" if unspecified.
u8 uniform_count |
The count of uniforms.
shader_uniform_config* uniforms |
The collection of uniforms. Darray.