diff options
| author | cheneym2 <acheney@nvidia.com> | 2025-03-11 11:19:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-11 10:19:54 -0500 |
| commit | ff55a569a0bff44a6f8abb105c07cbc2484bc007 (patch) | |
| tree | 9c7b4d31277be36cc1dfa108b8906d5d8b8d2ed4 /tools/gfx/renderer-shared.cpp | |
| parent | 3058a5881aa9393573847229f77442d244655292 (diff) | |
Add missing error check (#6570)
Bail from test if shader doesn't compile.
Diffstat (limited to 'tools/gfx/renderer-shared.cpp')
| -rw-r--r-- | tools/gfx/renderer-shared.cpp | 2 |
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); } |
