Mesa (vulkan): nir: Add a descriptor_set field to nir_variable
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Fri Apr 15 01:31:04 UTC 2016
Module: Mesa
Branch: vulkan
Commit: 1e0012e3e41e09c33f7f9d6671a803b7b0a7d9b8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e0012e3e41e09c33f7f9d6671a803b7b0a7d9b8
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Fri Mar 25 10:16:23 2016 -0700
nir: Add a descriptor_set field to nir_variable
This is needed for supporting the Vulkan binding model
Reviewed-by: Rob Clark <robdclark at gmail.com>
---
src/compiler/nir/nir.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 9d48356..8f35377 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.
More information about the mesa-commit
mailing list