summaryrefslogtreecommitdiff
path: root/src/ral/backends/vulkan/backend_vulkan.h
blob: f31bed2b4e01f2cbb199863819802022b9d547e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once

#ifdef CEL_REND_BACKEND_VULKAN
#include "defines.h"
#include "maths_types.h"
#include "ral.h"
#include "ral_impl.h"
#include "ral_types.h"

#include <vulkan/vk_platform.h>
#include <vulkan/vulkan.h>
#include <vulkan/vulkan_core.h>

// Provide definitions for RAL structs

struct GPU_Swapchain {
  VkSwapchainKHR handle;
};

struct GPU_Device {
  VkPhysicalDevice physical_device;
  VkDevice logical_device;
};

struct GPU_PipelineLayout {};
struct GPU_Pipeline {};
struct GPU_Renderpass {};
struct GPU_CmdEncoder {};
struct GPU_CmdBuffer {};
struct GPU_Buffer {
  VkBuffer handle;
  VkDeviceMemory memory;
  u64 size;
};
struct GPU_Texture {
  VkImage handle;
  VkDeviceMemory memory;
  u64 size;
  VkImageView view;
  VkSampler sampler;
  char* debug_label;
};

#endif