Suppose I have the following uniform buffer in my shader:
typedef struct
{
matrix_float4x4 modelview_projection_matrix;
float someValue;
} uniforms_t;
How do I get someValue's location in C++ or Objective-C? I want to do something like this:
void Shader::SetFloat( const char* name, float value )
where name would be 'someValue'.