diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-06-26 20:11:38 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-06-26 20:11:38 +0300 |
commit | 45805857e58bfda2752cf13fdb0f8e95540aa4d1 (patch) | |
tree | 04e0fad67784c71b2cb63f8be7ee5d6f9ff1da8e /spirv_cross.hpp | |
parent | 02b2a1015d2b5a7bf29eec7a8f3fbf62b14a443c (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.hpp | 2 |
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. |