From 1e0012e3e41e09c33f7f9d6671a803b7b0a7d9b8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 25 Mar 2016 10:16:23 -0700 Subject: [PATCH] nir: Add a descriptor_set field to nir_variable This is needed for supporting the Vulkan binding model Reviewed-by: Rob Clark --- 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 9d48356c6de..8f353773571 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -265,6 +265,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. * -- 2.30.2