summaryrefslogtreecommitdiff
path: root/src/renderer/cleanroom/backend_vulkan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/cleanroom/backend_vulkan.c')
-rw-r--r--src/renderer/cleanroom/backend_vulkan.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/renderer/cleanroom/backend_vulkan.c b/src/renderer/cleanroom/backend_vulkan.c
index 2838f20..71a09f3 100644
--- a/src/renderer/cleanroom/backend_vulkan.c
+++ b/src/renderer/cleanroom/backend_vulkan.c
@@ -1,16 +1,17 @@
#include <stdlib.h>
#include "ral.h"
#include "types.h"
-#include "render_types.h"
+// #include "render_types.h"
#define VULKAN_QUEUES_COUNT 2
-const char* queue_names[VULKAN_QUEUES_COUNT] = {
- "GRAPHICS", "TRANSFER"
-};
+const char* queue_names[VULKAN_QUEUES_COUNT] = { "GRAPHICS", "TRANSFER" };
+
+typedef struct gpu_device {
+} gpu_device;
typedef struct vulkan_context {
gpu_device device;
-
+
VkInstance instance;
} vulkan_context;
@@ -41,7 +42,6 @@ bool gpu_device_create(gpu_device* out_device) {
// Queues
// Create the command pool
-
}
gpu_renderpass* gpu_renderpass_create() {
@@ -51,8 +51,8 @@ gpu_renderpass* gpu_renderpass_create() {
}
void encode_set_pipeline(gpu_cmd_encoder* encoder, pipeline_type kind, gpu_pipeline* pipeline) {
-// VK_PIPELINE_BIND_POINT_GRAPHICS, &shader->pipeline);
- if (kind== PIPELINE_GRAPHICS) {
+ // VK_PIPELINE_BIND_POINT_GRAPHICS, &shader->pipeline);
+ if (kind == PIPELINE_GRAPHICS) {
// ...
} else {
// ...