summaryrefslogtreecommitdiffstats
path: root/tools/render-test
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-11-01 08:46:57 -0700
committerGitHub <noreply@github.com>2022-11-01 08:46:57 -0700
commitcbc1eff56057f199183bb7c17d8a360326512367 (patch)
tree487865e928cd2ceecbb509f0bfd06aa8d9584411 /tools/render-test
parentb707a07b1de3535cb0a8ccb6fe2ed4afa4a016d1 (diff)
Make `DifferentialPair` able to nest. (#2477)
Diffstat (limited to 'tools/render-test')
-rw-r--r--tools/render-test/render-test-main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/render-test/render-test-main.cpp b/tools/render-test/render-test-main.cpp
index 1490d0e36..c361e6b34 100644
--- a/tools/render-test/render-test-main.cpp
+++ b/tools/render-test/render-test-main.cpp
@@ -508,8 +508,9 @@ SlangResult RenderTestApp::initialize(
// Once the shaders have been compiled we load them via the underlying API.
//
- SLANG_RETURN_ON_FAIL(
- device->createProgram(m_compilationOutput.output.desc, m_shaderProgram.writeRef()));
+ ComPtr<ISlangBlob> outDiagnostics;
+ auto result = device->createProgram(m_compilationOutput.output.desc, m_shaderProgram.writeRef(), outDiagnostics.writeRef());
+ SLANG_RETURN_ON_FAIL(result);
m_device = device;