Kohi Game Engine
|
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... | |
Represents a single entry in the internal uniform array.
u16 index |
Index into the internal uniform array.
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).
u64 offset |
The offset in bytes from the beginning of the uniform set (global/instance/local)
shader_scope scope |
The scope of the uniform.
u8 set_index |
The index of the descriptor set the uniform belongs to (0=global, 1=instance, INVALID_ID=local).
u16 size |
The size of the uniform, or 0 for samplers.
shader_uniform_type type |
The type of uniform.