summaryrefslogtreecommitdiff
path: root/src/renderer/backends/backend_dx11.h
diff options
context:
space:
mode:
authorJoshua Rowe <17525998+omnisci3nce@users.noreply.github.com>2024-05-20 10:50:11 +1000
committerGitHub <noreply@github.com>2024-05-20 10:50:11 +1000
commite904c22003c3a134201b222e6619e782fbe63947 (patch)
tree5295c8ce5f855ca4a0f1bebe50beee80bae66682 /src/renderer/backends/backend_dx11.h
parent02e84ee4d18e705e3362be1e327fdb6f1397a032 (diff)
parent73d4145f46d2305f45761b8e456df692d1962dfb (diff)
Merge pull request #14 from omnisci3nce/realign
Realign
Diffstat (limited to 'src/renderer/backends/backend_dx11.h')
-rw-r--r--src/renderer/backends/backend_dx11.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/renderer/backends/backend_dx11.h b/src/renderer/backends/backend_dx11.h
new file mode 100644
index 0000000..53738aa
--- /dev/null
+++ b/src/renderer/backends/backend_dx11.h
@@ -0,0 +1,29 @@
+#pragma once
+#include <d3d11.h>
+#include <d3dcompiler.h>
+
+#include "ral.h"
+
+#define GPU_SWAPCHAIN_IMG_COUNT 2
+
+// typedef struct gpu_swapchain gpu_swapchain;
+typedef struct gpu_device {
+ // VkPhysicalDevice physical_device;
+ // VkDevice logical_device;
+ // VkPhysicalDeviceProperties properties;
+ // VkPhysicalDeviceFeatures features;
+ // VkPhysicalDeviceMemoryProperties memory;
+ // VkCommandPool pool;
+} gpu_device;
+typedef struct gpu_pipeline {
+} gpu_pipeline;
+
+typedef struct gpu_renderpass {
+ // VkRenderPass vk_handle;
+ // VkFramebuffer framebuffers[GPU_SWAPCHAIN_IMG_COUNT];
+ // u32
+} gpu_renderpass;
+
+typedef struct gpu_cmd_encoder {
+ // VkCommandBuffer cmd_buffer;
+} gpu_cmd_encoder; \ No newline at end of file