aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/api-test/dx12-device.hpp36
-rw-r--r--include/api-test/vk-device.hpp2
2 files changed, 37 insertions, 1 deletions
diff --git a/include/api-test/dx12-device.hpp b/include/api-test/dx12-device.hpp
new file mode 100644
index 0000000..8d8d1c3
--- /dev/null
+++ b/include/api-test/dx12-device.hpp
@@ -0,0 +1,36 @@
+#include <d3d12.h>
+#include <dxgi.h>
+
+class dx12device {
+ public:
+ void init();
+
+ static inline dx12device& get_render_device() {
+ return render_device;
+ }
+
+ void create_surface(const surface_desc& desc);
+
+ void create_buffer() {};
+
+ void create_texture() {};
+
+ void create_graphics_pipeline() {};
+
+ void create_compute_pipeline() {};
+
+ void allocate_command_buffers() {};
+
+ void get_buffer() {};
+
+ void get_texture() {};
+
+ private:
+ IDXGIFactory* factory;
+ IDXGIAdapter* adapter;
+
+ ID3D12Device* device;
+ ID3D12CommandQueue queues[3U];
+
+ static dx12device render_device;
+};
diff --git a/include/api-test/vk-device.hpp b/include/api-test/vk-device.hpp
index 7f86cbb..9c4b9a9 100644
--- a/include/api-test/vk-device.hpp
+++ b/include/api-test/vk-device.hpp
@@ -152,7 +152,7 @@ class vkdevice {
device_semaphore timeline_semaphore;
- static vkdevice render_device;
+ static vkdevice render_device;
#ifdef _DEBUG
VkDebugUtilsMessengerEXT debug_messenger;