summaryrefslogtreecommitdiffstats
path: root/tools/render-test
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-02-20 18:50:41 -0500
committerYong He <yonghe@outlook.com>2018-02-20 18:50:41 -0500
commit4cf46e5c8b2af8a4ea4db15cd402aae4145a614c (patch)
tree8ca6b0f7e844fbf56cb1991284aff3ebbcc8aa89 /tools/render-test
parent61a6d18c4870eb55b804d36a30608a34c55e801d (diff)
bug fix: witnessTable's subTypeDeclRef should have default substitution for getSpecailizedMangledName to work properly.
Diffstat (limited to 'tools/render-test')
-rw-r--r--tools/render-test/slang-support.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/render-test/slang-support.cpp b/tools/render-test/slang-support.cpp
index 2a6401d5b..5599a3396 100644
--- a/tools/render-test/slang-support.cpp
+++ b/tools/render-test/slang-support.cpp
@@ -99,8 +99,9 @@ struct SlangShaderCompilerWrapper : public ShaderCompiler
spFindProfile(slangSession, request.computeShader.profile),
(int)rawTypeNames.Count(),
rawTypeNames.Buffer());
- int compileErr = spCompile(slangRequest);
+
spSetLineDirectiveMode(slangRequest, SLANG_LINE_DIRECTIVE_MODE_NONE);
+ int compileErr = spCompile(slangRequest);
if (auto diagnostics = spGetDiagnosticOutput(slangRequest))
{
fprintf(stderr, "%s", diagnostics);