summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-glsl.cpp
diff options
context:
space:
mode:
authorTheresa Foley <10618364+tangent-vector@users.noreply.github.com>2025-05-12 10:28:05 -0700
committerGitHub <noreply@github.com>2025-05-12 17:28:05 +0000
commit4c76b275907cf2d764f3fc51468d1c58635a10c1 (patch)
tree201a353c2b64b258760c370e641821ec5f6eff85 /source/slang/slang-emit-glsl.cpp
parent6b286bfbdf85e40cac1ee325384f535df969938a (diff)
Cleanups related to RIFF support (#7041)
Diffstat (limited to 'source/slang/slang-emit-glsl.cpp')
-rw-r--r--source/slang/slang-emit-glsl.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/slang/slang-emit-glsl.cpp b/source/slang/slang-emit-glsl.cpp
index 5e9fa7f70..850395d97 100644
--- a/source/slang/slang-emit-glsl.cpp
+++ b/source/slang/slang-emit-glsl.cpp
@@ -3074,11 +3074,8 @@ void GLSLSourceEmitter::handleRequiredCapabilitiesImpl(IRInst* inst)
}
case kIROp_RequireSPIRVVersionDecoration:
{
- auto intValue =
- static_cast<IRRequireSPIRVVersionDecoration*>(decoration)->getSPIRVVersion();
- SemanticVersion version;
- version.setFromInteger(SemanticVersion::IntegerType(intValue));
- _requireSPIRVVersion(version);
+ _requireSPIRVVersion(
+ static_cast<IRRequireSPIRVVersionDecoration*>(decoration)->getSPIRVVersion());
break;
}
}