1 #ifndef MSP_GL_REFLECTDATA_H_
2 #define MSP_GL_REFLECTDATA_H_
13 Reflection data for shader programs.
17 typedef unsigned LayoutHash;
18 struct UniformBlockInfo;
23 const UniformBlockInfo *block;
30 unsigned array_stride;
31 unsigned matrix_stride;
39 struct UniformBlockInfo
44 std::vector<const UniformInfo *> uniforms;
45 LayoutHash layout_hash;
50 void update_layout_hash();
63 std::vector<UniformBlockInfo> uniform_blocks;
64 std::vector<UniformInfo> uniforms;
65 LayoutHash layout_hash;
66 std::vector<AttributeInfo> attributes;
68 void update_layout_hash();