summaryrefslogtreecommitdiff
path: root/src/render/archive/backends
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-13 20:29:27 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-13 20:29:27 +1000
commit567d384b698151e287e31140709c93f1b92e6db4 (patch)
treee00975124d3f002a8aaa22e85475d913c6950346 /src/render/archive/backends
parent13949ca02bcf9fcdfcc48ea7949f617553a260b6 (diff)
loading joints and animations
Diffstat (limited to 'src/render/archive/backends')
-rw-r--r--src/render/archive/backends/opengl/backend_opengl.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/render/archive/backends/opengl/backend_opengl.h b/src/render/archive/backends/opengl/backend_opengl.h
index 73a19ed..14b44af 100644
--- a/src/render/archive/backends/opengl/backend_opengl.h
+++ b/src/render/archive/backends/opengl/backend_opengl.h
@@ -17,11 +17,11 @@ typedef struct gpu_swapchain {
typedef struct gpu_device {
} gpu_device;
typedef struct gpu_pipeline_layout {
- void *pad
+ void* pad
} gpu_pipeline_layout;
typedef struct gpu_pipeline {
u32 shader_id;
- gpu_renderpass *renderpass;
+ gpu_renderpass* renderpass;
vertex_description vertex_desc;
buffer_handle uniform_bindings[MAX_PIPELINE_UNIFORM_BUFFERS];
u32 uniform_count;
@@ -32,10 +32,10 @@ typedef struct gpu_renderpass {
gpu_renderpass_desc description;
} gpu_renderpass;
typedef struct gpu_cmd_encoder {
- gpu_pipeline *pipeline;
+ gpu_pipeline* pipeline;
} gpu_cmd_encoder; // Recording
typedef struct gpu_cmd_buffer {
- void *pad;
+ void* pad;
} gpu_cmd_buffer; // Ready for submission
typedef struct gpu_buffer {
@@ -48,21 +48,21 @@ typedef struct gpu_buffer {
u32 vao;
u32 ubo_binding_point
}; // Optional
- char *name;
+ char* name;
u64 size;
} gpu_buffer;
typedef struct gpu_texture {
u32 id;
- void *pad;
+ void* pad;
} gpu_texture;
typedef struct opengl_support {
} opengl_support;
-u32 shader_create_separate(const char *vert_shader, const char *frag_shader);
+u32 shader_create_separate(const char* vert_shader, const char* frag_shader);
-void uniform_vec3f(u32 program_id, const char *uniform_name, vec3 *value);
-void uniform_f32(u32 program_id, const char *uniform_name, f32 value);
-void uniform_i32(u32 program_id, const char *uniform_name, i32 value);
-void uniform_mat4f(u32 program_id, const char *uniform_name, mat4 *value);
+void uniform_vec3f(u32 program_id, const char* uniform_name, vec3* value);
+void uniform_f32(u32 program_id, const char* uniform_name, f32 value);
+void uniform_i32(u32 program_id, const char* uniform_name, i32 value);
+void uniform_mat4f(u32 program_id, const char* uniform_name, mat4* value);
#endif