diff options
| author | Yong He <yonghe@outlook.com> | 2021-12-06 09:06:16 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-06 09:06:16 -0800 |
| commit | 5cbd61774c6ef2209fa0afc79b1dbbb68514346b (patch) | |
| tree | 5d1eaaa4f8ed16b5b3fe005b3dfd2488ad462b87 /tools/gfx/renderer-shared.h | |
| parent | da6be80f18014a3972eedf05099cd0066e9eae04 (diff) | |
gfx Mutable Root shader object implementation. (#2042)
* gfx Mutable Root shader object implementation.
* Fix x86 build.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/renderer-shared.h')
| -rw-r--r-- | tools/gfx/renderer-shared.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/gfx/renderer-shared.h b/tools/gfx/renderer-shared.h index abbeb285f..1d5d1860e 100644 --- a/tools/gfx/renderer-shared.h +++ b/tools/gfx/renderer-shared.h @@ -533,15 +533,12 @@ public: virtual SLANG_NO_THROW Result SLANG_MCALL getCurrentVersion( ITransientResourceHeap* transientHeap, IShaderObject** outObject) override { - SLANG_UNUSED(outObject); - return SLANG_E_NOT_AVAILABLE; + returnComPtr(outObject, this); + return SLANG_OK; } - virtual SLANG_NO_THROW Result SLANG_MCALL copyFrom(IShaderObject* other) override - { - SLANG_UNUSED(other); - return SLANG_E_NOT_AVAILABLE; - } + virtual SLANG_NO_THROW Result SLANG_MCALL + copyFrom(IShaderObject* object, ITransientResourceHeap* transientHeap) override; virtual SLANG_NO_THROW const void* SLANG_MCALL getRawData() override { |
