aboutsummaryrefslogtreecommitdiff
path: root/demo/DemoAppD3D12/meshInteropD3D12.cpp
diff options
context:
space:
mode:
authorAndrew Reidmeyer <[email protected]>2017-06-13 20:38:29 -0600
committerAndrew Reidmeyer <[email protected]>2017-06-13 20:38:29 -0600
commit62a1427154131f2387675957c1d2027061f354f0 (patch)
tree4efdcb7d3fe9722d46523a51bc5c90b96f25441e /demo/DemoAppD3D12/meshInteropD3D12.cpp
parentInitial 1.0.0 binary release (diff)
downloadflow-62a1427154131f2387675957c1d2027061f354f0.tar.xz
flow-62a1427154131f2387675957c1d2027061f354f0.zip
NvFlow 1.0.1v1.0.1
Diffstat (limited to 'demo/DemoAppD3D12/meshInteropD3D12.cpp')
-rw-r--r--demo/DemoAppD3D12/meshInteropD3D12.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/demo/DemoAppD3D12/meshInteropD3D12.cpp b/demo/DemoAppD3D12/meshInteropD3D12.cpp
index 19c034d..28649a0 100644
--- a/demo/DemoAppD3D12/meshInteropD3D12.cpp
+++ b/demo/DemoAppD3D12/meshInteropD3D12.cpp
@@ -19,20 +19,28 @@
#include "appD3D12Ctx.h"
#include "meshD3D12.h"
-MeshContext* MeshInteropContextCreate(AppGraphCtx* appctx)
+MESH_API MeshContext* MeshInteropContextCreateD3D12(AppGraphCtx* appctx);
+
+MESH_API void MeshInteropContextUpdateD3D12(MeshContext* context, AppGraphCtx* appctx);
+
+MeshContext* MeshInteropContextCreateD3D12(AppGraphCtx* appctxIn)
{
- MeshContextDesc desc = {};
+ auto appctx = cast_to_AppGraphCtxD3D12(appctxIn);
+
+ MeshContextDescD3D12 desc = {};
desc.device = appctx->m_device;
desc.commandList = appctx->m_commandList;
- return MeshContextCreate(&desc);
+ return MeshContextCreateD3D12(cast_from_MeshContextDescD3D12(&desc));
}
-void MeshInteropContextUpdate(MeshContext* context, AppGraphCtx* appctx)
+void MeshInteropContextUpdateD3D12(MeshContext* context, AppGraphCtx* appctxIn)
{
- MeshContextDesc desc = {};
+ auto appctx = cast_to_AppGraphCtxD3D12(appctxIn);
+
+ MeshContextDescD3D12 desc = {};
desc.device = appctx->m_device;
desc.commandList = appctx->m_commandList;
- return MeshContextUpdate(context, &desc);
+ return MeshContextUpdateD3D12(context, cast_from_MeshContextDescD3D12(&desc));
} \ No newline at end of file