19 #ifndef FASTUIDRAW_UNPACK_SOURCE_GENERATOR_HPP 20 #define FASTUIDRAW_UNPACK_SOURCE_GENERATOR_HPP 127 set(
unsigned int offset,
c_string field_name,
129 unsigned int struct_idx = 0);
150 set(
unsigned int offset,
unsigned int bit0,
unsigned int num_bits,
152 unsigned int struct_idx = 0);
171 unsigned int struct_idx = 0)
193 unsigned int struct_idx = 0)
215 unsigned int struct_idx = 0)
ShaderSource stream_unpack_size_function(c_string function_name) const
A ShaderSource represents the source code to a GLSL shader, specifying blocks of source code and macr...
all classes and functions of FastUIDraw are in the namespace fastuidraw.
UnpackSourceGenerator & set_int(unsigned int offset, c_string field_name, unsigned int struct_idx=0)
UnpackSourceGenerator & set_float(unsigned int offset, c_string field_name, unsigned int struct_idx=0)
const UnpackSourceGenerator & stream_unpack_function(ShaderSource &str, c_string function_name) const
An unpack source generator is used to generate shader source code to unpack data from the data store ...
UnpackSourceGenerator & operator=(const UnpackSourceGenerator &rhs)
void swap(UnpackSourceGenerator &obj)
A c_array is a wrapper over a C pointer with a size parameter to facilitate bounds checking and provi...
UnpackSourceGenerator(c_string type_name)
const char * c_string
Conveniant typedef for C-style strings.
const UnpackSourceGenerator & stream_unpack_size_function(ShaderSource &str, c_string function_name) const
ShaderSource stream_unpack_function(c_string function_name) const
UnpackSourceGenerator & set_uint(unsigned int offset, c_string field_name, unsigned int struct_idx=0)