Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spirv_msl.hpp')
-rw-r--r--spirv_msl.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/spirv_msl.hpp b/spirv_msl.hpp
index 1a7ee5c0..a848f9b5 100644
--- a/spirv_msl.hpp
+++ b/spirv_msl.hpp
@@ -504,6 +504,11 @@ public:
return !buffers_requiring_array_length.empty();
}
+ bool buffer_requires_array_length(VariableID id) const
+ {
+ return buffers_requiring_array_length.count(id) != 0;
+ }
+
// Provide feedback to calling API to allow it to pass a buffer
// containing the view mask for the current multiview subpass.
bool needs_view_mask_buffer() const