summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-hlsl.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-06-18 15:06:14 -0700
committerGitHub <noreply@github.com>2020-06-18 15:06:14 -0700
commit515d8eb0cd719ae31db2f6e03751011a123bc0ba (patch)
tree3e78893a74af856fb29158078bed7099a567f5dd /source/slang/slang-emit-hlsl.cpp
parente2d21026d115dc61296b47dcc990534f1844bc7f (diff)
parentaa6aca498cd1f7fbbdb143e72dd48b1d714c8fbb (diff)
Merge branch 'master' into feature/prelude-fix
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
-rw-r--r--source/slang/slang-emit-hlsl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp
index 83bfb8f2a..440b9bc68 100644
--- a/source/slang/slang-emit-hlsl.cpp
+++ b/source/slang/slang-emit-hlsl.cpp
@@ -135,12 +135,12 @@ void HLSLSourceEmitter::_emitHLSLRegisterSemantics(EmitVarChain* chain, char con
auto layout = chain->varLayout;
- switch (getSourceStyle())
+ switch (getSourceLanguage())
{
default:
return;
- case SourceStyle::HLSL:
+ case SourceLanguage::HLSL:
break;
}
@@ -290,11 +290,11 @@ void HLSLSourceEmitter::emitParameterGroupImpl(IRGlobalParam* varDecl, IRUniform
void HLSLSourceEmitter::emitEntryPointAttributesImpl(IRFunc* irFunc, IREntryPointDecoration* entryPointDecor)
{
auto profile = m_effectiveProfile;
- auto stage = entryPointDecor->getProfile().GetStage();
+ auto stage = entryPointDecor->getProfile().getStage();
if (profile.getFamily() == ProfileFamily::DX)
{
- if (profile.GetVersion() >= ProfileVersion::DX_6_1)
+ if (profile.getVersion() >= ProfileVersion::DX_6_1)
{
char const* stageName = getStageName(stage);
if (stageName)