summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-glsl.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-05-28 17:15:12 -0400
committerGitHub <noreply@github.com>2021-05-28 14:15:12 -0700
commit67486ee516ddc33806003727682cbfc68ab1f726 (patch)
tree21e44c4a01cae2bfa03de9ed35efe45f0ce1ac66 /source/slang/slang-emit-glsl.cpp
parent89faa8a7d9b441b5dd92eec5fcf362eb3f38fa2b (diff)
Glslang refactor bugfix (#1863)
* #include an absolute path didn't work - because paths were taken to always be relative. * Fix issue with with SLANG_ENABLE_GLSLANG_SUPPORT * Update expected output from glslang-error.glsl * Fix bug in glsl dissassembly. * Make ExtensionTracker available even if source is not emitted. * Only explicitly set extension tracker based on capability bits, if we are in pass through. * Small simplification of invoke sourceEmit.
Diffstat (limited to 'source/slang/slang-emit-glsl.cpp')
-rw-r--r--source/slang/slang-emit-glsl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-emit-glsl.cpp b/source/slang/slang-emit-glsl.cpp
index 5b29fb8fa..b5eec456a 100644
--- a/source/slang/slang-emit-glsl.cpp
+++ b/source/slang/slang-emit-glsl.cpp
@@ -12,6 +12,13 @@
namespace Slang {
+GLSLSourceEmitter::GLSLSourceEmitter(const Desc& desc) :
+ Super(desc)
+{
+ m_glslExtensionTracker = dynamicCast<GLSLExtensionTracker>(desc.extensionTracker);
+ SLANG_ASSERT(m_glslExtensionTracker);
+}
+
SlangResult GLSLSourceEmitter::init()
{
SLANG_RETURN_ON_FAIL(Super::init());