From 12a846e8facf090aaeb68fcabf55867f5eaed747 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Thu, 4 Aug 2022 16:59:28 -0700 Subject: Split debug-layer into smaller files (#2344) * checkpoint commit * debug-layer split, does not compile * Almost compiles, rebasing before making any further changes * everything compiles and passes tests locally * Added tools/gfx/debug-layer to premake and ran premake Co-authored-by: Yong He --- tools/gfx/cpu/cpu-device.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools/gfx/cpu/cpu-device.cpp') diff --git a/tools/gfx/cpu/cpu-device.cpp b/tools/gfx/cpu/cpu-device.cpp index 92c08ef71..0db2b0fa7 100644 --- a/tools/gfx/cpu/cpu-device.cpp +++ b/tools/gfx/cpu/cpu-device.cpp @@ -1,6 +1,8 @@ // cpu-device.cpp #include "cpu-device.h" +#include + #include "cpu-buffer.h" #include "cpu-pipeline-state.h" #include "cpu-query.h" @@ -290,4 +292,13 @@ namespace cpu } } // namespace cpu + +Result SLANG_MCALL createCPUDevice(const IDevice::Desc* desc, IDevice** outDevice) +{ + RefPtr result = new cpu::DeviceImpl(); + SLANG_RETURN_ON_FAIL(result->initialize(*desc)); + returnComPtr(outDevice, result); + return SLANG_OK; +} + } // namespace gfx -- cgit v1.2.3