diff options
Diffstat (limited to 'examples/shader-toy/main.cpp')
| -rw-r--r-- | examples/shader-toy/main.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/examples/shader-toy/main.cpp b/examples/shader-toy/main.cpp index 40c97e0f4..d94d629ba 100644 --- a/examples/shader-toy/main.cpp +++ b/examples/shader-toy/main.cpp @@ -76,21 +76,6 @@ struct Uniforms float iTime; }; -// Many Slang API functions return detailed diagnostic information -// (error messages, warnings, etc.) as a "blob" of data, or return -// a null blob pointer instead if there were no issues. -// -// For convenience, we define a subroutine that will dump the information -// in a diagnostic blob if one is produced, and skip it otherwise. -// -void diagnoseIfNeeded(slang::IBlob* diagnosticsBlob) -{ - if( diagnosticsBlob != nullptr ) - { - printf("%s", (const char*) diagnosticsBlob->getBufferPointer()); - } -} - // The main interesting part of the host application code is where we // load, compile, inspect, and compose the Slang shader code. // |
