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:
authorHans-Kristian Arntzen <post@arntzen-software.no>2019-06-26 20:11:38 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2019-06-26 20:11:38 +0300
commit45805857e58bfda2752cf13fdb0f8e95540aa4d1 (patch)
tree04e0fad67784c71b2cb63f8be7ee5d6f9ff1da8e /spirv_cross.hpp
parent02b2a1015d2b5a7bf29eec7a8f3fbf62b14a443c (diff)
MSL: De-virtualize get_declared_struct_member_size.
It does not make sense to use a virtual call in the Compiler base class here. Make it clearer by renaming the MSL-specific version to _msl.
Diffstat (limited to 'spirv_cross.hpp')
-rw-r--r--spirv_cross.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/spirv_cross.hpp b/spirv_cross.hpp
index ccd7c04a..c2dc4ea6 100644
--- a/spirv_cross.hpp
+++ b/spirv_cross.hpp
@@ -258,7 +258,7 @@ public:
size_t get_declared_struct_size_runtime_array(const SPIRType &struct_type, size_t array_size) const;
// Returns the effective size of a buffer block struct member.
- virtual size_t get_declared_struct_member_size(const SPIRType &struct_type, uint32_t index) const;
+ size_t get_declared_struct_member_size(const SPIRType &struct_type, uint32_t index) const;
// Returns a set of all global variables which are statically accessed
// by the control flow graph from the current entry point.