Skip to content

Commit

Permalink
handle the compile failure correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhangNV committed Nov 5, 2024
1 parent 49d4c27 commit 609180b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions try-slang.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ var onRun = () => {
const module = device.createShaderModule({code:ret.code});
computePipeline.createPipeline(module);
}
else
{
toggleDisplayMode(HIDDEN_MODE);
return;
}

toggleDisplayMode(compiler.shaderType);
if (compiler.shaderType == SlangCompiler.PRINT_SHADER)
Expand Down

0 comments on commit 609180b

Please sign in to comment.