summaryrefslogtreecommitdiff
path: root/src/renderer/backends/opengl/backend_opengl.h
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-06-07 12:13:22 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-06-07 12:13:22 +1000
commit5751ffae2eb8f786edb2dcd9e7f635fd1d0c1331 (patch)
tree237e4cf25f97210d180395871e75550352e9badb /src/renderer/backends/opengl/backend_opengl.h
parent44188d921c13111b61904f98ad06f8249e41d050 (diff)
chore: fmt
Diffstat (limited to 'src/renderer/backends/opengl/backend_opengl.h')
-rw-r--r--src/renderer/backends/opengl/backend_opengl.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/renderer/backends/opengl/backend_opengl.h b/src/renderer/backends/opengl/backend_opengl.h
index 0ce765a..14a46f9 100644
--- a/src/renderer/backends/opengl/backend_opengl.h
+++ b/src/renderer/backends/opengl/backend_opengl.h
@@ -8,15 +8,24 @@
typedef struct gpu_swapchain {
u32x2 dimensions;
} gpu_swapchain;
-typedef struct gpu_device {} gpu_device;
-typedef struct gpu_pipeline_layout { void* pad } gpu_pipeline_layout;
+typedef struct gpu_device {
+} gpu_device;
+typedef struct gpu_pipeline_layout {
+ void *pad
+} gpu_pipeline_layout;
typedef struct gpu_pipeline {
u32 shader_id;
u32 pad;
} gpu_pipeline;
-typedef struct gpu_renderpass { void* pad } gpu_renderpass;
-typedef struct gpu_cmd_encoder { void* pad } gpu_cmd_encoder; // Recording
-typedef struct gpu_cmd_buffer { void* pad } gpu_cmd_buffer; // Ready for submission
+typedef struct gpu_renderpass {
+ void *pad
+} gpu_renderpass;
+typedef struct gpu_cmd_encoder {
+ void *pad
+} gpu_cmd_encoder; // Recording
+typedef struct gpu_cmd_buffer {
+ void *pad
+} gpu_cmd_buffer; // Ready for submission
typedef struct gpu_buffer {
union {
@@ -25,8 +34,9 @@ typedef struct gpu_buffer {
} id;
u32 pad;
} gpu_buffer;
-typedef struct gpu_texture { void* pad } gpu_texture;
-
+typedef struct gpu_texture {
+ void *pad
+} gpu_texture;
u32 shader_create_separate(const char *vert_shader, const char *frag_shader);