aboutsummaryrefslogtreecommitdiff
path: root/demo/DemoAppD3D11/meshInteropD3D11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demo/DemoAppD3D11/meshInteropD3D11.cpp')
-rw-r--r--demo/DemoAppD3D11/meshInteropD3D11.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/demo/DemoAppD3D11/meshInteropD3D11.cpp b/demo/DemoAppD3D11/meshInteropD3D11.cpp
index 5ab9a90..40d2473 100644
--- a/demo/DemoAppD3D11/meshInteropD3D11.cpp
+++ b/demo/DemoAppD3D11/meshInteropD3D11.cpp
@@ -19,20 +19,28 @@
#include "appD3D11Ctx.h"
#include "meshD3D11.h"
-MeshContext* MeshInteropContextCreate(AppGraphCtx* appctx)
+MESH_API MeshContext* MeshInteropContextCreateD3D11(AppGraphCtx* appctx);
+
+MESH_API void MeshInteropContextUpdateD3D11(MeshContext* context, AppGraphCtx* appctx);
+
+MeshContext* MeshInteropContextCreateD3D11(AppGraphCtx* appctxIn)
{
- MeshContextDesc desc = {};
+ auto appctx = cast_to_AppGraphCtxD3D11(appctxIn);
+
+ MeshContextDescD3D11 desc = {};
desc.device = appctx->m_device;
desc.context = appctx->m_deviceContext;
- return MeshContextCreate(&desc);
+ return MeshContextCreateD3D11(cast_from_MeshContextDescD3D11(&desc));
}
-void MeshInteropContextUpdate(MeshContext* context, AppGraphCtx* appctx)
+void MeshInteropContextUpdateD3D11(MeshContext* context, AppGraphCtx* appctxIn)
{
- MeshContextDesc desc = {};
+ auto appctx = cast_to_AppGraphCtxD3D11(appctxIn);
+
+ MeshContextDescD3D11 desc = {};
desc.device = appctx->m_device;
desc.context = appctx->m_deviceContext;
- return MeshContextUpdate(context, &desc);
+ return MeshContextUpdateD3D11(context, cast_from_MeshContextDescD3D11(&desc));
} \ No newline at end of file