Browse Source

remove data_size parameter from GLUniform

main
cinnaboot 4 years ago
parent
commit
0fcaa473de
  1. 6
      src/shader.h

6
src/shader.h

@ -17,16 +17,10 @@ struct GLUniform
GLuint idx;
GLint location;
GLint block_idx;
GLenum uniform_type; // NOTE: GL_UNSIGNED_INT, GL_FLOAT_VEC4
GLint num_elements; // NOTE: 1 unless uniform is an array of base types
// FIXME: we can't actually get this from opengl introspection API, we have
// to infer it from the uniform type...
GLint data_size; // NOTE: total size in bytes...
GLint array_stride; // NOTE: bytes between array elements
GLint uniform_offset; // NOTE: byte offset from beginning of uniform
char* name;
};

Loading…
Cancel
Save