summaryrefslogtreecommitdiffstats
path: root/tools/gfx
diff options
context:
space:
mode:
authorcheneym2 <acheney@nvidia.com>2025-03-11 11:19:54 -0400
committerGitHub <noreply@github.com>2025-03-11 10:19:54 -0500
commitff55a569a0bff44a6f8abb105c07cbc2484bc007 (patch)
tree9c7b4d31277be36cc1dfa108b8906d5d8b8d2ed4 /tools/gfx
parent3058a5881aa9393573847229f77442d244655292 (diff)
Add missing error check (#6570)
Bail from test if shader doesn't compile.
Diffstat (limited to 'tools/gfx')
-rw-r--r--tools/gfx/renderer-shared.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gfx/renderer-shared.cpp b/tools/gfx/renderer-shared.cpp
index edd271ecb..ad32a012a 100644
--- a/tools/gfx/renderer-shared.cpp
+++ b/tools/gfx/renderer-shared.cpp
@@ -1130,6 +1130,8 @@ Result ShaderProgramBase::compileShaders(RendererBase* device)
DebugMessageSource::Slang,
(char*)diagnostics->getBufferPointer());
}
+ SLANG_RETURN_ON_FAIL(compileResult);
+
kernelCodes.add(downstreamIR);
}