From fa6d8717d02912697c09f2d7de802723ac6d6e47 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 6 Dec 2023 10:28:23 +0800 Subject: squash warnings (#3378) Co-authored-by: Yong He --- tools/gfx/cpu/cpu-shader-object.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/gfx/cpu') diff --git a/tools/gfx/cpu/cpu-shader-object.h b/tools/gfx/cpu/cpu-shader-object.h index 5d0b5c366..2be703dc5 100644 --- a/tools/gfx/cpu/cpu-shader-object.h +++ b/tools/gfx/cpu/cpu-shader-object.h @@ -81,7 +81,9 @@ public: virtual SLANG_NO_THROW uint32_t SLANG_MCALL addRef() override; virtual SLANG_NO_THROW uint32_t SLANG_MCALL release() override; + // An overload for the `init` virtual function, with a more specific type Result init(IDevice* device, RootShaderObjectLayoutImpl* programLayout); + using ShaderObjectImpl::init; RootShaderObjectLayoutImpl* getLayout(); -- cgit v1.2.3