X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.h;h=48c18d0f56333371130710942a4dbdc9076e9f45;hb=58e4e69e640838076c506a94cd5f8f905d55420a;hp=6f84cfd26436e314b6d48d02dac8e7c0e2b51154;hpb=7af200475facc657a0bbffaa17520d3ec9d809af;p=libs%2Fgl.git diff --git a/source/core/program.h b/source/core/program.h index 6f84cfd2..48c18d0f 100644 --- a/source/core/program.h +++ b/source/core/program.h @@ -63,11 +63,17 @@ public: { std::string name; const UniformBlockInfo *block; - unsigned location; + union + { + int location; + unsigned offset; + }; unsigned array_size; unsigned array_stride; unsigned matrix_stride; DataType type; + + UniformInfo(); }; struct UniformBlockInfo @@ -77,6 +83,8 @@ public: int bind_point; std::vector uniforms; LayoutHash layout_hash; + + UniformBlockInfo(); }; struct AttributeInfo @@ -85,6 +93,8 @@ public: unsigned location; unsigned array_size; DataType type; + + AttributeInfo(); }; typedef std::map UniformMap;