diff options
| author | Yong He <yonghe@outlook.com> | 2022-01-14 13:08:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-14 13:08:46 -0800 |
| commit | b2f4cb118ef15cbf522be0335e4084ac6db57672 (patch) | |
| tree | 37c2d6c3519ef7fc3d60142a4a31cbe16708e0bc /tools/gfx/cuda/render-cuda.cpp | |
| parent | d3f904cbfa1568366bc8c8d231a57a03d47ddc98 (diff) | |
Various fixes to GFX, nested parameter block test for d3d12. (#2081)
* Various fixes.
* Add nested parameter block test.
* Remove slang-llvm licence info
* Ingore slang-llvm/ directory.
* Fixup.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/cuda/render-cuda.cpp')
| -rw-r--r-- | tools/gfx/cuda/render-cuda.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp index 46f5be9cb..2c3f1eb56 100644 --- a/tools/gfx/cuda/render-cuda.cpp +++ b/tools/gfx/cuda/render-cuda.cpp @@ -2160,8 +2160,10 @@ public: return SLANG_OK; } - virtual SLANG_NO_THROW Result SLANG_MCALL - createProgram(const IShaderProgram::Desc& desc, IShaderProgram** outProgram) override + virtual SLANG_NO_THROW Result SLANG_MCALL createProgram( + const IShaderProgram::Desc& desc, + IShaderProgram** outProgram, + ISlangBlob** outDiagnosticBlob) override { // If this is a specializable program, we just keep a reference to the slang program and // don't actually create any kernels. This program will be specialized later when we know @@ -2186,6 +2188,8 @@ public: compileResult == SLANG_OK ? DebugMessageType::Warning : DebugMessageType::Error, DebugMessageSource::Slang, (char*)diagnostics->getBufferPointer()); + if (outDiagnosticBlob) + returnComPtr(outDiagnosticBlob, diagnostics); } SLANG_RETURN_ON_FAIL(compileResult); |
