summaryrefslogtreecommitdiff
path: root/source/slang/slang-compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-compiler.h')
-rw-r--r--source/slang/slang-compiler.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-compiler.h b/source/slang/slang-compiler.h
index 18192678a..8a9b8985a 100644
--- a/source/slang/slang-compiler.h
+++ b/source/slang/slang-compiler.h
@@ -2812,7 +2812,9 @@ public:
};
CodeGenContext(Shared* shared)
- : m_shared(shared), m_targetFormat(shared->targetProgram->getTargetReq()->getTarget())
+ : m_shared(shared)
+ , m_targetFormat(shared->targetProgram->getTargetReq()->getTarget())
+ , m_targetProfile(shared->targetProgram->getOptionSet().getProfile())
{
}
@@ -2909,6 +2911,7 @@ public:
protected:
CodeGenTarget m_targetFormat = CodeGenTarget::Unknown;
+ Profile m_targetProfile;
ExtensionTracker* m_extensionTracker = nullptr;
/// Will output assembly as well as the artifact if appropriate for the artifact type for