diff options
Diffstat (limited to 'src/ral/backends/opengl/backend_opengl.h')
-rw-r--r-- | src/ral/backends/opengl/backend_opengl.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ral/backends/opengl/backend_opengl.h b/src/ral/backends/opengl/backend_opengl.h index f5ab9c8..fd50830 100644 --- a/src/ral/backends/opengl/backend_opengl.h +++ b/src/ral/backends/opengl/backend_opengl.h @@ -11,20 +11,20 @@ #define OPENGL_DEFAULT_FRAMEBUFFER 0 -typedef struct GPU_Swapchain{ +typedef struct GPU_Swapchain { u32x2 dimensions; -}GPU_Swapchain; +} GPU_Swapchain; typedef struct GPU_Device { } GPU_Device; -typedef struct GPU_PipelineLayout{ +typedef struct GPU_PipelineLayout { void *pad; -}GPU_PipelineLayout; +} GPU_PipelineLayout; typedef struct GPU_Pipeline { u32 shader_id; - GPU_Renderpass* renderpass; + GPU_Renderpass *renderpass; VertexDescription vertex_desc; BufferHandle uniform_bindings[MAX_PIPELINE_UNIFORM_BUFFERS]; u32 uniform_count; @@ -38,7 +38,7 @@ typedef struct GPU_Renderpass { typedef struct GPU_CmdEncoder { GPU_Pipeline *pipeline; -} GPU_CmdEncoder; // Recording +} GPU_CmdEncoder; // Recording typedef struct GPU_CmdBuffer { void *pad; @@ -53,14 +53,14 @@ typedef struct GPU_Buffer { union { u32 vao; u32 ubo_binding_point - }; // Optional - char* name; + }; // Optional + char *name; u64 size; } GPU_Buffer; typedef struct GPU_Texture { u32 id; - void* pad; + void *pad; } GPU_Texture; typedef struct opengl_support { |