From efebfada38cd5252da62f7618c7f95e3ab180fbd Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 17 Nov 2021 13:20:13 -0800 Subject: gfx ShaderObject interface update, getTextureAllocationInfo() (#2019) * gfx ShaderObject interface update, getTextureAllocationInfo() * Fix render-vk compiler warnings and errors. Co-authored-by: Yong He --- tools/gfx/renderer-shared.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tools/gfx/renderer-shared.h') diff --git a/tools/gfx/renderer-shared.h b/tools/gfx/renderer-shared.h index eeb10b527..abbeb285f 100644 --- a/tools/gfx/renderer-shared.h +++ b/tools/gfx/renderer-shared.h @@ -542,6 +542,16 @@ public: SLANG_UNUSED(other); return SLANG_E_NOT_AVAILABLE; } + + virtual SLANG_NO_THROW const void* SLANG_MCALL getRawData() override + { + return nullptr; + } + + virtual SLANG_NO_THROW Result SLANG_MCALL setConstantBufferOverride(IBufferResource* outBuffer) override + { + return SLANG_E_NOT_AVAILABLE; + } }; template @@ -1241,6 +1251,10 @@ public: virtual SLANG_NO_THROW Result SLANG_MCALL waitForFences(uint32_t fenceCount, IFence** fences, uint64_t* fenceValues, bool waitForAll, uint64_t timeout) override; + // Provides a default implementation that returns SLANG_E_NOT_AVAILABLE. + virtual SLANG_NO_THROW Result SLANG_MCALL getTextureAllocationInfo( + const ITextureResource::Desc& desc, size_t* outSize, size_t* outAlignment) override; + Result getShaderObjectLayout( slang::TypeReflection* type, ShaderObjectContainerType container, -- cgit v1.2.3