diff options
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index fab1cd2d291..fdb595106c2 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -683,6 +683,11 @@ public: unsigned explicit_index:1; /** + * Do we have a Vulkan (group, index) qualifier for this variable? + */ + unsigned vk_set:1; + + /** * Was an initial binding explicitly set in the shader? * * If so, constant_value contains an integer ir_constant representing the @@ -751,8 +756,10 @@ public: * \note * The GLSL spec only allows the values 0 or 1 for the index in \b dual * source blending. + * + * This is now also used for the Vulkan descriptor set index. */ - unsigned index:1; + int16_t index; /** * \brief Layout qualifier for gl_FragDepth. @@ -801,6 +808,11 @@ public: int16_t binding; /** + * Vulkan descriptor set for the resource. + */ + int16_t set; + + /** * Storage location of the base of this variable * * The precise meaning of this field depends on the nature of the variable. |