From 79e92395f8ce3d92c446e3bb3250d19ce33decd5 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 16 Apr 2021 10:34:26 -0700 Subject: Update `model-viewer` example and fixing compiler bugs. (#1795) --- examples/shader-toy/main.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'examples/shader-toy/main.cpp') 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. // -- cgit v1.2.3