summaryrefslogtreecommitdiffstats
path: root/tools/gfx/render.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-03-09 11:32:23 -0800
committerGitHub <noreply@github.com>2022-03-09 11:32:23 -0800
commit727c7d2b824913b3ae263243421ea79ca4940eb8 (patch)
tree38ef191600a8a49650da9b7d01c2bf8f70594369 /tools/gfx/render.cpp
parentdcb434a5fe801d42d1b5f385fd27d0c500687647 (diff)
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 <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/render.cpp')
-rw-r--r--tools/gfx/render.cpp4
1 files changed, 2 insertions, 2 deletions
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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */