summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-03-25 10:16:23 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-14 17:20:05 -0700
commit1e0012e3e41e09c33f7f9d6671a803b7b0a7d9b8 (patch)
tree6ba9488425e57d24961ca862cc4813e6f45334b7
parent7a835b3fd9b171eedecfdb23d326eae4bc0cb6d4 (diff)
downloadmesa-1e0012e3e41e09c33f7f9d6671a803b7b0a7d9b8.tar.gz
nir: Add a descriptor_set field to nir_variable
This is needed for supporting the Vulkan binding model Reviewed-by: Rob Clark <robdclark@gmail.com>
-rw-r--r--src/compiler/nir/nir.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 9d48356c6de..8f353773571 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -266,6 +266,11 @@ typedef struct nir_variable {
int index;
/**
+ * Descriptor set binding for sampler or UBO.
+ */
+ int descriptor_set;
+
+ /**
* Initial binding point for a sampler or UBO.
*
* For array types, this represents the binding point for the first element.