From f834f25794cfb746079e92d58c7410b767c57208 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 14 Jan 2021 15:48:54 -0800 Subject: COM-ify all slang-gfx interfaces. (#1656) * COM-ify all slang-gfx interfaces. --- tools/graphics-app-framework/gui.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tools/graphics-app-framework/gui.h') diff --git a/tools/graphics-app-framework/gui.h b/tools/graphics-app-framework/gui.h index fa6fda1d1..4fd1ca150 100644 --- a/tools/graphics-app-framework/gui.h +++ b/tools/graphics-app-framework/gui.h @@ -6,10 +6,11 @@ #include "window.h" #include "slang-com-ptr.h" #include "external/imgui/imgui.h" +#include "source/core/slang-basic.h" namespace gfx { -struct GUI : RefObject +struct GUI : Slang::RefObject { GUI(Window* window, IRenderer* renderer); ~GUI(); @@ -19,10 +20,10 @@ struct GUI : RefObject private: Slang::ComPtr renderer; - RefPtr pipelineState; - RefPtr descriptorSetLayout; - RefPtr pipelineLayout; - RefPtr samplerState; + Slang::ComPtr pipelineState; + Slang::ComPtr descriptorSetLayout; + Slang::ComPtr pipelineLayout; + Slang::ComPtr samplerState; }; } // gfx -- cgit v1.2.3