From e792cd61606193b26a5f65df9fe7fb1bbc45c4be Mon Sep 17 00:00:00 2001 From: Jin Zhou Date: Tue, 22 May 2018 00:44:34 -0400 Subject: [PATCH] no expression type for OpSRem fix issue#582 --- spirv_glsl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index 7967bfbb..2461665b 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -6664,6 +6664,10 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction) UFOP(transpose); break; + case OpSRem: + BOP_CAST(%, SPIRType::Int); + break; + case OpSDiv: BOP_CAST(/, SPIRType::Int); break;