Uniform query
Allows an application to query the available uniform blocks, their members and
r_shader_uniform_block_count
uint r_shader_uniform_block_count(RShader *shader);
Description: Returns the number of uniform blocks used by a shader.r_shader_uniform_block_size
uint r_shader_uniform_block_size(RShader *shader, uint block);
Description: Returns the size of a specific uniform Block in bytes.r_shader_uniform_block_member_count
uint r_shader_uniform_block_member_count(RShader *shader, uint block);
Description: Lists the number of members a specific block has.r_shader_uniform_block_member_name
char *r_shader_uniform_block_member_name(RShader *shader, uint block, uint member);
Description: returns the name of a member uniform from a blockr_shader_uniform_block_member_type
RInputType r_shader_uniform_block_member_type(RShader *shader, uint block, uint member);
Description: returns the type of a member uniform from a blockTypes:
Enum:
RInputType
R_SIT_BOOL |
R_SIT_VBOOL2 |
R_SIT_VBOOL3 |
R_SIT_VBOOL4 |
R_SIT_INT |
R_SIT_VINT2 |
R_SIT_VINT3 |
R_SIT_VINT4 |
R_SIT_UINT |
R_SIT_VUINT2 |
R_SIT_VUINT3 |
R_SIT_VUINT4 |
R_SIT_FLOAT |
R_SIT_VEC2 |
R_SIT_VEC3 |
R_SIT_VEC4 |
R_SIT_DOUBLE |
R_SIT_VDOUBLE2 |
R_SIT_VDOUBLE3 |
R_SIT_VDOUBLE4 |
R_SIT_MAT2 |
R_SIT_MAT2X3 |
R_SIT_MAT2X4 |
R_SIT_MAT3X2 |
R_SIT_MAT3 |
R_SIT_MAT3X4 |
R_SIT_MAT4X2 |
R_SIT_MAT4X3 |
R_SIT_MAT4 |
R_SIT_DMAT2 |
R_SIT_DMAT2X3 |
R_SIT_DMAT2X4 |
R_SIT_DMAT3X2 |
R_SIT_DMAT3 |
R_SIT_DMAT3X4 |
R_SIT_DMAT4X2 |
R_SIT_DMAT4X3 |
R_SIT_DMAT4 |
R_SIT_SAMPLER_1D |
R_SIT_SAMPLER_2D |
R_SIT_SAMPLER_3D |
R_SIT_SAMPLER_CUBE |
R_SIT_SAMPLER_RECTANGLE |
R_SIT_SAMPLER_1D_ARRAY |
R_SIT_SAMPLER_2D_ARRAY |
R_SIT_SAMPLER_CUBE_MAP_ARRAY |
R_SIT_SAMPLER_BUFFER |
R_SIT_SAMPLER_2D_MULTISAMPLE |
R_SIT_SAMPLER_2D_MULTISAMPLE_ARRAY |
R_SIT_COUNT |
r_shader_uniform_block_member_offset
uint r_shader_uniform_block_member_offset(RShader *shader, uint block, uint member);
Description: returns the offset of a member uniform from a blockr_shader_uniform_block_location
uint r_shader_uniform_block_location(RShader *shader, char *name);
Description: Returns the offset, in number of bytes where a specific value will be read in a uniform block