Kohi Game Engine
kasset_shader_uniform Struct Reference

Represents a shader uniform within a shader asset. More...

#include <kasset_types.h>

Data Fields

const char * name
 The uniform name. More...
 
shader_uniform_type type
 The uniform type. More...
 
u32 size
 The uniform size. Only used for struct type uniforms, ignored otherwise. More...
 
u32 array_size
 The number of elements for array uniforms. Treated as an array if > 1. More...
 
shader_update_frequency frequency
 The uniform update frequency (i.e. per-frame, per-group, per-draw) More...
 

Detailed Description

Represents a shader uniform within a shader asset.

Field Documentation

◆ array_size

u32 array_size

The number of elements for array uniforms. Treated as an array if > 1.

◆ frequency

The uniform update frequency (i.e. per-frame, per-group, per-draw)

◆ name

const char* name

The uniform name.

◆ size

u32 size

The uniform size. Only used for struct type uniforms, ignored otherwise.

◆ type

The uniform type.


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