X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Freflectdata.h;h=2925da146b899b1e62ab642b09403400d8f2b761;hp=2c0d7fe3e1c0765586726a2dfb4acb7e28616cdc;hb=fee6115b609b8726b50a1f9169d50e8f68170b75;hpb=0a096b9bc02a67ea4a27645907c6b9d1fbdaae85 diff --git a/source/core/reflectdata.h b/source/core/reflectdata.h index 2c0d7fe3..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; @@ -40,7 +46,7 @@ struct ReflectData std::string name; unsigned data_size = 0; int descriptor_set = 0; - int bind_point = -1; + int bind_point = DEFAULT_BLOCK; std::vector uniforms; LayoutHash layout_hash = 0;