From 89f67d9c626fa193dba4adafcb54e46b13aa5e98 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 25 May 2021 15:22:39 -0700 Subject: Rework shader object specialization control interface. (#1857) --- tools/gfx/debug-layer.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/gfx/debug-layer.h') diff --git a/tools/gfx/debug-layer.h b/tools/gfx/debug-layer.h index f9ecc7dfe..89ee9d837 100644 --- a/tools/gfx/debug-layer.h +++ b/tools/gfx/debug-layer.h @@ -168,6 +168,7 @@ public: IResourceView* textureView, ISamplerState* sampler) override; virtual SLANG_NO_THROW Result SLANG_MCALL setSpecializationArgs( + ShaderOffset const& offset, const slang::SpecializationArg* args, uint32_t count) override; @@ -204,8 +205,10 @@ class DebugRootShaderObject : public DebugShaderObject public: virtual SLANG_NO_THROW uint32_t SLANG_MCALL addRef() override { return 1; } virtual SLANG_NO_THROW uint32_t SLANG_MCALL release() override { return 1; } - virtual SLANG_NO_THROW Result SLANG_MCALL - setSpecializationArgs(const slang::SpecializationArg* args, uint32_t count) override; + virtual SLANG_NO_THROW Result SLANG_MCALL setSpecializationArgs( + ShaderOffset const& offset, + const slang::SpecializationArg* args, + uint32_t count) override; }; class DebugCommandBuffer; -- cgit v1.2.3