diff --git a/try-slang.js b/try-slang.js index 4b5b0b5..6533a98 100644 --- a/try-slang.js +++ b/try-slang.js @@ -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)