diff options
author | Bill Hollings <bill.hollings@brenwill.com> | 2021-09-04 01:20:49 +0300 |
---|---|---|
committer | Bill Hollings <bill.hollings@brenwill.com> | 2021-09-04 01:20:49 +0300 |
commit | 5fb1ca4f0d04f2b169086e1a48a465bc2dc29169 (patch) | |
tree | a66f386b115f2bbaa27ae0e1d0c162d7248a339c /spirv_glsl.hpp | |
parent | 51d8e7be9443aebb773192812ef7e4d67a7adce1 (diff) |
Add support for additional ops in OpSpecConstantOp.
MSL: Support op OpQuantizeToF16 in OpSpecConstantOp.
All: Support op OpSRem in OpSpecConstantOp.
Diffstat (limited to 'spirv_glsl.hpp')
-rw-r--r-- | spirv_glsl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spirv_glsl.hpp b/spirv_glsl.hpp index 83d4d72b..d9594d30 100644 --- a/spirv_glsl.hpp +++ b/spirv_glsl.hpp @@ -386,7 +386,7 @@ protected: virtual void emit_struct_padding_target(const SPIRType &type); virtual std::string image_type_glsl(const SPIRType &type, uint32_t id = 0); std::string constant_expression(const SPIRConstant &c); - std::string constant_op_expression(const SPIRConstantOp &cop); + virtual std::string constant_op_expression(const SPIRConstantOp &cop); virtual std::string constant_expression_vector(const SPIRConstant &c, uint32_t vector); virtual void emit_fixup(); virtual std::string variable_decl(const SPIRType &type, const std::string &name, uint32_t id = 0); |