Kohi Game Engine
shader_uniform Struct Reference

Represents a single entry in the internal uniform array. More...

#include <core_render_types.h>

Data Fields

kname name
 
u64 offset
 The offset in bytes from the beginning of the uniform set (per-frame/per-group/per-draw) More...
 
u16 location
 The location to be used as a lookup. For samplers and textures, this is the index within the internal sampler/texture array at the given frequency (per-frame/per-group/per-draw). Otherwise, index into the uniform array within the shader. More...
 
u16 tex_samp_index
 Index into the internal sampler/texture array depending on type. More...
 
u16 size
 The size of the uniform, or 0 for samplers. More...
 
shader_update_frequency frequency
 The update frequency of the uniform. More...
 
shader_uniform_type type
 The type of uniform. More...
 
u32 array_length
 The length of the array if it is one; otherwise 0. More...
 

Detailed Description

Represents a single entry in the internal uniform array.

Field Documentation

◆ array_length

u32 array_length

The length of the array if it is one; otherwise 0.

◆ frequency

The update frequency of the uniform.

◆ location

u16 location

The location to be used as a lookup. For samplers and textures, this is the index within the internal sampler/texture array at the given frequency (per-frame/per-group/per-draw). Otherwise, index into the uniform array within the shader.

◆ name

kname name

◆ offset

u64 offset

The offset in bytes from the beginning of the uniform set (per-frame/per-group/per-draw)

◆ size

u16 size

The size of the uniform, or 0 for samplers.

◆ tex_samp_index

u16 tex_samp_index

Index into the internal sampler/texture array depending on type.

◆ type

The type of uniform.


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