diff options
author | Neil Roberts <[email protected]> | 2018-02-23 17:07:52 +0100 |
---|---|---|
committer | Alejandro PiƱeiro <[email protected]> | 2018-06-21 14:25:05 +0200 |
commit | b995bda9bca0d368f1433b153b64e5200d39bc1d (patch) | |
tree | 1f4f502ff8c9dc3a567d017738c224b007af115a /src/compiler/spirv/vtn_private.h | |
parent | 386f09be9b7984d99d7106b2ec10ba25d5cf2673 (diff) |
spirv: Set nir_variable->explicit_binding
When SpvDecorationBinding is encountered in the SPIR-V source it now
sets explicit_binding on the nir_variable. This will be used to
determine whether to initialise sampler and image uniforms with the
binding value.
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_private.h')
-rw-r--r-- | src/compiler/spirv/vtn_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h index 232396775df..bef82dfb5b5 100644 --- a/src/compiler/spirv/vtn_private.h +++ b/src/compiler/spirv/vtn_private.h @@ -456,6 +456,7 @@ struct vtn_variable { unsigned descriptor_set; unsigned binding; + bool explicit_binding; unsigned input_attachment_index; bool patch; |