From 727c7d2b824913b3ae263243421ea79ca4940eb8 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 9 Mar 2022 11:32:23 -0800 Subject: gfx: restructure render-d3d12.cpp (#2154) * Vulkan: deferred shader compilation and pipeline creation. * Fix 32bit build. * gfx: restructure the code in render-d3d12.cpp * Move `Submitter`. * Fix. * merge with master. * Revert dictionary change in previous PR. Co-authored-by: Yong He --- tools/gfx/render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/gfx/render.cpp') diff --git a/tools/gfx/render.cpp b/tools/gfx/render.cpp index 2125ed47f..3cb19f205 100644 --- a/tools/gfx/render.cpp +++ b/tools/gfx/render.cpp @@ -1,9 +1,7 @@ // render.cpp #include "renderer-shared.h" #include "../../source/core/slang-math.h" - #include "d3d11/render-d3d11.h" -#include "d3d12/render-d3d12.h" #include "open-gl/render-gl.h" #include "vulkan/render-vk.h" #include "cuda/render-cuda.h" @@ -15,6 +13,8 @@ namespace gfx { using namespace Slang; +Result SLANG_MCALL createD3D12Device(const IDevice::Desc* desc, IDevice** outDevice); + static bool debugLayerEnabled = false; /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Global Renderer Functions !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ -- cgit v1.2.3