Skip to content

Commit ff55a56

Browse files
authored
Add missing error check (#6570)
Bail from test if shader doesn't compile.
1 parent 3058a58 commit ff55a56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/gfx/renderer-shared.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,8 @@ Result ShaderProgramBase::compileShaders(RendererBase* device)
11301130
DebugMessageSource::Slang,
11311131
(char*)diagnostics->getBufferPointer());
11321132
}
1133+
SLANG_RETURN_ON_FAIL(compileResult);
1134+
11331135
kernelCodes.add(downstreamIR);
11341136
}
11351137

0 commit comments

Comments
 (0)