X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Freflectdata.h;h=2925da146b899b1e62ab642b09403400d8f2b761;hb=e70662d7812464159f2e47f4bebb69d88f89ae93;hp=33ef1799ea469805832af7d9752a8888cf555036;hpb=ba55832910f04b90695da360b5889fa85e83c1e1;p=libs%2Fgl.git diff --git a/source/core/reflectdata.h b/source/core/reflectdata.h index 33ef1799..2925da14 100644 --- a/source/core/reflectdata.h +++ b/source/core/reflectdata.h @@ -14,6 +14,12 @@ Reflection data for shader programs. */ struct ReflectData { + enum + { + DEFAULT_BLOCK = -1, + PUSH_CONSTANT = -2 + }; + typedef unsigned LayoutHash; struct UniformBlockInfo; @@ -31,6 +37,7 @@ struct ReflectData unsigned matrix_stride = 0; DataType type = VOID; Tag tag; + int descriptor_set = 0; int binding = -1; }; @@ -38,7 +45,8 @@ struct ReflectData { std::string name; unsigned data_size = 0; - int bind_point = -1; + int descriptor_set = 0; + int bind_point = DEFAULT_BLOCK; std::vector uniforms; LayoutHash layout_hash = 0; @@ -49,7 +57,7 @@ struct ReflectData struct AttributeInfo { std::string name; - unsigned location = -1; + int location = -1; unsigned array_size = 0; DataType type = VOID; };