summaryrefslogtreecommitdiff
path: root/src/renderer/backends
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/backends')
-rw-r--r--src/renderer/backends/backend_dx11.c4
-rw-r--r--src/renderer/backends/backend_dx11.h27
2 files changed, 30 insertions, 1 deletions
diff --git a/src/renderer/backends/backend_dx11.c b/src/renderer/backends/backend_dx11.c
index d991f03..7e48853 100644
--- a/src/renderer/backends/backend_dx11.c
+++ b/src/renderer/backends/backend_dx11.c
@@ -1,3 +1,5 @@
-#if CEL_REND_BACKEND_DX11
+#if defined(CEL_REND_BACKEND_DX11)
+#include <d3d11.h>
+#include <d3dcompiler.h>
#endif \ No newline at end of file
diff --git a/src/renderer/backends/backend_dx11.h b/src/renderer/backends/backend_dx11.h
new file mode 100644
index 0000000..163ca97
--- /dev/null
+++ b/src/renderer/backends/backend_dx11.h
@@ -0,0 +1,27 @@
+#pragma once
+#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