From 3103f383751a12f8a0bdb22309704f1f826d204c Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Tue, 9 Jul 2024 23:32:33 +1000 Subject: wip: some cleanup of ral --- src/ral/ral_impl.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/ral/ral_impl.h (limited to 'src/ral/ral_impl.h') diff --git a/src/ral/ral_impl.h b/src/ral/ral_impl.h new file mode 100644 index 0000000..8edf211 --- /dev/null +++ b/src/ral/ral_impl.h @@ -0,0 +1,22 @@ +#pragma once +#include "defines.h" +#include "ral_types.h" + +struct GLFWwindow; + +bool gpu_backend_init(const char* window_name, struct GLFWwindow* window); +void gpu_backend_shutdown(); + +bool gpu_device_create(gpu_device* out_device); +void gpu_device_destroy(gpu_device* device); + +gpu_pipeline* gpu_graphics_pipeline_create(struct graphics_pipeline_desc description); +void gpu_pipeline_destroy(gpu_pipeline* pipeline); + +// --- Renderpass +gpu_renderpass* gpu_renderpass_create(const gpu_renderpass_desc* description); +void gpu_renderpass_destroy(gpu_renderpass* pass); + +// --- Swapchain +bool gpu_swapchain_create(gpu_swapchain* out_swapchain); +void gpu_swapchain_destroy(gpu_swapchain* swapchain); \ No newline at end of file -- cgit v1.2.3-70-g09d2