From 5eee6b03c391d0bb6ed0ded2d8d91c2e525fdb97 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Thu, 30 Jun 2022 11:09:45 -0700 Subject: Split render-d3d11.cpp into smaller files (#2307) * render-d3d11 split, does not compile * Compiles but unit tests failing * ran premake.bat * Readded constructor code that was accidentally removed --- tools/gfx/d3d11/d3d11-buffer.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tools/gfx/d3d11/d3d11-buffer.cpp (limited to 'tools/gfx/d3d11/d3d11-buffer.cpp') diff --git a/tools/gfx/d3d11/d3d11-buffer.cpp b/tools/gfx/d3d11/d3d11-buffer.cpp new file mode 100644 index 000000000..aa51b999f --- /dev/null +++ b/tools/gfx/d3d11/d3d11-buffer.cpp @@ -0,0 +1,32 @@ +// d3d11-buffer.cpp +#include "d3d11-buffer.h" + +namespace gfx +{ + +using namespace Slang; + +namespace d3d11 +{ + +SLANG_NO_THROW DeviceAddress SLANG_MCALL BufferResourceImpl::getDeviceAddress() +{ + return 0; +} + +SLANG_NO_THROW Result SLANG_MCALL + BufferResourceImpl::map(MemoryRange* rangeToRead, void** outPointer) +{ + SLANG_UNUSED(rangeToRead); + SLANG_UNUSED(outPointer); + return SLANG_FAIL; +} + +SLANG_NO_THROW Result SLANG_MCALL BufferResourceImpl::unmap(MemoryRange* writtenRange) +{ + SLANG_UNUSED(writtenRange); + return SLANG_FAIL; +} + +} // namespace d3d11 +} // namespace gfx -- cgit v1.2.3