diff options
Diffstat (limited to 'src/renderer/backends/opengl/backend_opengl.h')
-rw-r--r-- | src/renderer/backends/opengl/backend_opengl.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/renderer/backends/opengl/backend_opengl.h b/src/renderer/backends/opengl/backend_opengl.h new file mode 100644 index 0000000..3bc742d --- /dev/null +++ b/src/renderer/backends/opengl/backend_opengl.h @@ -0,0 +1,28 @@ +#pragma once + +#define CEL_REND_BACKEND_OPENGL + +#if defined(CEL_REND_BACKEND_OPENGL) + +#include "defines.h" +#include "maths_types.h" + +typedef struct gpu_swapchain { + u32x2 dimensions; +} gpu_swapchain; +typedef struct gpu_device {} gpu_device; +typedef struct gpu_pipeline_layout {} gpu_pipeline_layout; +typedef struct gpu_pipeline {} gpu_pipeline; +typedef struct gpu_renderpass {} gpu_renderpass; +typedef struct gpu_cmd_encoder {} gpu_cmd_encoder; // Recording +typedef struct gpu_cmd_buffer {} gpu_cmd_buffer; // Ready for submission + +typedef struct gpu_buffer { + union { + u32 vbo; + u32 ibo; + } id; +} gpu_buffer; +typedef struct gpu_texture {} gpu_texture; + +#endif
\ No newline at end of file |