X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Freflectdata.h;h=a89e7fcf2972c973c89a803501ebbd6739f7f11c;hp=7d1b5acf6b745a5aca663dbbf6a6c87828cb9588;hb=7ef75a4c4dbfc437e466381dd67c23357e607b82;hpb=1d8cad55b56c072dc7a59e98015d824094f812ea diff --git a/source/core/reflectdata.h b/source/core/reflectdata.h index 7d1b5acf..a89e7fcf 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; @@ -38,7 +44,7 @@ struct ReflectData { std::string name; unsigned data_size = 0; - int bind_point = -1; + int bind_point = DEFAULT_BLOCK; std::vector uniforms; LayoutHash layout_hash = 0; @@ -59,6 +65,7 @@ struct ReflectData LayoutHash layout_hash = 0; std::vector attributes; unsigned n_clip_distances = 0; + unsigned n_descriptor_sets = 0; void update_layout_hash(); };