diff options
Diffstat (limited to 'tools/gfx/renderer-shared.cpp')
| -rw-r--r-- | tools/gfx/renderer-shared.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/tools/gfx/renderer-shared.cpp b/tools/gfx/renderer-shared.cpp index 7ba939530..d1cedaa61 100644 --- a/tools/gfx/renderer-shared.cpp +++ b/tools/gfx/renderer-shared.cpp @@ -155,6 +155,13 @@ IResourceView* ResourceViewBase::getInterface(const Guid& guid) return nullptr; } +Result ResourceViewBase::getNativeHandle(InteropHandle* outHandle) +{ + outHandle->api = InteropHandleAPI::Unknown; + outHandle->handleValue = 0; + return SLANG_E_NOT_IMPLEMENTED; +} + ISamplerState* SamplerStateBase::getInterface(const Slang::Guid& guid) { if (guid == GfxGUID::IID_ISlangUnknown || guid == GfxGUID::IID_ISamplerState) @@ -162,6 +169,13 @@ ISamplerState* SamplerStateBase::getInterface(const Slang::Guid& guid) return nullptr; } +Result SamplerStateBase::getNativeHandle(InteropHandle* outHandle) +{ + outHandle->api = InteropHandleAPI::Unknown; + outHandle->handleValue = 0; + return SLANG_E_NOT_IMPLEMENTED; +} + IAccelerationStructure* AccelerationStructureBase::getInterface(const Slang::Guid& guid) { if (guid == GfxGUID::IID_ISlangUnknown || guid == GfxGUID::IID_IResourceView || @@ -264,13 +278,20 @@ IQueryPool* QueryPoolBase::getInterface(const Guid& guid) return nullptr; } -IPipelineState* gfx::PipelineStateBase::getInterface(const Guid& guid) +IPipelineState* PipelineStateBase::getInterface(const Guid& guid) { if (guid == GfxGUID::IID_ISlangUnknown || guid == GfxGUID::IID_IPipelineState) return static_cast<IPipelineState*>(this); return nullptr; } +Result PipelineStateBase::getNativeHandle(InteropHandle* outHandle) +{ + outHandle->api = InteropHandleAPI::Unknown; + outHandle->handleValue = 0; + return SLANG_E_NOT_IMPLEMENTED; +} + void PipelineStateBase::initializeBase(const PipelineStateDesc& inDesc) { desc = inDesc; |
