Kohi Game Engine
shader_uniform Struct Reference

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

#include <shader_system.h>

Data Fields

u64 offset
 The offset in bytes from the beginning of the uniform set (global/instance/local) More...
 
u16 location
 The location to be used as a lookup. Typically the same as the index except for samplers, which is used to lookup texture index within the internal array at the given scope (global/instance). More...
 
u16 index
 Index into the internal uniform array. More...
 
u16 size
 The size of the uniform, or 0 for samplers. More...
 
u8 set_index
 The index of the descriptor set the uniform belongs to (0=global, 1=instance, INVALID_ID=local). More...
 
shader_scope scope
 The scope of the uniform. More...
 
shader_uniform_type type
 The type of uniform. More...
 

Detailed Description

Represents a single entry in the internal uniform array.

Field Documentation

◆ index

u16 index

Index into the internal uniform array.

◆ location

u16 location

The location to be used as a lookup. Typically the same as the index except for samplers, which is used to lookup texture index within the internal array at the given scope (global/instance).

◆ offset

u64 offset

The offset in bytes from the beginning of the uniform set (global/instance/local)

◆ scope

shader_scope scope

The scope of the uniform.

◆ set_index

u8 set_index

The index of the descriptor set the uniform belongs to (0=global, 1=instance, INVALID_ID=local).

◆ size

u16 size

The size of the uniform, or 0 for samplers.

◆ type

The type of uniform.


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