Kohi Game Engine
shader_config Struct Reference

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_configattributes
 The collection of attributes. Darray. More...
 
u8 uniform_count
 The count of uniforms. More...
 
shader_uniform_configuniforms
 The collection of uniforms. Darray. More...
 
u8 stage_count
 The number of stages present in the shader. More...
 
shader_stagestages
 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...
 

Detailed Description

Configuration for a shader. Typically created and destroyed by the shader resource loader, and set to the properties found in a .shadercfg resource file.

Field Documentation

◆ attribute_count

u8 attribute_count

The count of attributes.

◆ attributes

The collection of attributes. Darray.

◆ cull_mode

face_cull_mode cull_mode

The face cull mode to be used. Default is BACK if not supplied.

◆ flags

u32 flags

The flags set for this shader.

◆ name

char* name

The name of the shader to be created.

◆ stage_count

u8 stage_count

The number of stages present in the shader.

◆ stage_filenames

char** stage_filenames

The collection of stage file names to be loaded (one per stage). Must align with stages array. Darray.

◆ stage_names

char** stage_names

The collection of stage names. Must align with stages array. Darray.

◆ stages

shader_stage* stages

The collection of stages. Darray.

◆ topology_types

u32 topology_types

The topology types for the shader pipeline. See primitive_topology_type. Defaults to "triangle list" if unspecified.

◆ uniform_count

u8 uniform_count

The count of uniforms.

◆ uniforms

The collection of uniforms. Darray.


The documentation for this struct was generated from the following file: