aboutsummaryrefslogtreecommitdiff
path: root/demo/DemoAppD3D12/imguiGraphD3D12.h
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/imguiGraphD3D12.h
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/imguiGraphD3D12.h')
-rw-r--r--demo/DemoAppD3D12/imguiGraphD3D12.h46
1 files changed, 44 insertions, 2 deletions
diff --git a/demo/DemoAppD3D12/imguiGraphD3D12.h b/demo/DemoAppD3D12/imguiGraphD3D12.h
index 7eeb538..d011188 100644
--- a/demo/DemoAppD3D12/imguiGraphD3D12.h
+++ b/demo/DemoAppD3D12/imguiGraphD3D12.h
@@ -29,7 +29,7 @@ struct ImguiDynamicDescriptorHeapD3D12
ImguiDescriptorReserveHandleD3D12(*reserveDescriptors)(void* userdata, UINT numDescriptors, UINT64 lastFenceCompleted, UINT64 nextFenceValue);
};
-struct ImguiGraphDesc
+struct ImguiGraphDescD3D12
{
ID3D12Device* device = nullptr;
ID3D12GraphicsCommandList* commandList = nullptr;
@@ -42,7 +42,49 @@ struct ImguiGraphDesc
ImguiDynamicDescriptorHeapD3D12 dynamicHeapCbvSrvUav = {};
- ImguiGraphDesc() {}
+ ImguiGraphDescD3D12() {}
};
+inline const ImguiGraphDescD3D12* cast_to_imguiGraphDescD3D12(const ImguiGraphDesc* desc)
+{
+ return (const ImguiGraphDescD3D12*)(desc);
+}
+
+inline ImguiGraphDesc* cast_from_imguiGraphDescD3D12(ImguiGraphDescD3D12* desc)
+{
+ return (ImguiGraphDesc*)(desc);
+}
+
+IMGUI_GRAPH_API void imguiGraphContextInitD3D12(const ImguiGraphDesc* desc);
+
+IMGUI_GRAPH_API void imguiGraphContextUpdateD3D12(const ImguiGraphDesc* desc);
+
+IMGUI_GRAPH_API void imguiGraphContextDestroyD3D12();
+
+IMGUI_GRAPH_API void imguiGraphRecordBeginD3D12();
+
+IMGUI_GRAPH_API void imguiGraphRecordEndD3D12();
+
+IMGUI_GRAPH_API void imguiGraphVertex2fD3D12(float x, float y);
+
+IMGUI_GRAPH_API void imguiGraphVertex2fvD3D12(const float* v);
+
+IMGUI_GRAPH_API void imguiGraphTexCoord2fD3D12(float u, float v);
+
+IMGUI_GRAPH_API void imguiGraphColor4ubD3D12(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha);
+
+IMGUI_GRAPH_API void imguiGraphColor4ubvD3D12(const uint8_t* v);
+
+IMGUI_GRAPH_API void imguiGraphFontTextureEnableD3D12();
+
+IMGUI_GRAPH_API void imguiGraphFontTextureDisableD3D12();
+
+IMGUI_GRAPH_API void imguiGraphEnableScissorD3D12(int x, int y, int width, int height);
+
+IMGUI_GRAPH_API void imguiGraphDisableScissorD3D12();
+
+IMGUI_GRAPH_API void imguiGraphFontTextureInitD3D12(unsigned char* data);
+
+IMGUI_GRAPH_API void imguiGraphFontTextureReleaseD3D12();
+
#endif \ No newline at end of file