Skip to content

Commit

Permalink
Merge pull request #32 from kaizhangNV/main
Browse files Browse the repository at this point in the history
handle the compile failure correctly
  • Loading branch information
kaizhangNV authored Nov 5, 2024
2 parents 49d4c27 + 609180b commit b4ac61a
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 b4ac61a

Please sign in to comment.