diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-30 22:19:07 +1000 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-30 22:19:07 +1000 |
commit | 59854f60b761d77cee4095c9ce45062c926dea5a (patch) | |
tree | 383d9a232e2ddf7341acbf1a96a8f45b96331219 /src/renderer/backends/opengl/backend_opengl.h | |
parent | baf787b9eb742b0c52ecf8c9ae319dbfb4ea0f1b (diff) |
wip
Diffstat (limited to 'src/renderer/backends/opengl/backend_opengl.h')
-rw-r--r-- | src/renderer/backends/opengl/backend_opengl.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/renderer/backends/opengl/backend_opengl.h b/src/renderer/backends/opengl/backend_opengl.h index 649bc7b..784c061 100644 --- a/src/renderer/backends/opengl/backend_opengl.h +++ b/src/renderer/backends/opengl/backend_opengl.h @@ -10,7 +10,9 @@ typedef struct gpu_swapchain { } 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_pipeline { + u32 shader_id; +} 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 @@ -23,4 +25,11 @@ typedef struct gpu_buffer { } gpu_buffer; typedef struct gpu_texture {} gpu_texture; + +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); #endif
\ No newline at end of file |