summaryrefslogtreecommitdiff
path: root/src/gpu/gpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gpu.h')
-rw-r--r--src/gpu/gpu.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gpu/gpu.h b/src/gpu/gpu.h
index a78c433..f9c322c 100644
--- a/src/gpu/gpu.h
+++ b/src/gpu/gpu.h
@@ -32,7 +32,7 @@ struct RenderPass {
};
void gpu_init(GLFWwindow *window);
-void gpu_draw(float audio_peak, float aspect_ratio, float time);
+void gpu_draw(float audio_peak, float aspect_ratio, float time, float beat);
void gpu_shutdown();
// Helper functions (exposed for internal/future use)
@@ -42,10 +42,12 @@ struct ResourceBinding {
// WGPUBufferBindingType_Storage
};
-GpuBuffer gpu_create_buffer(size_t size, uint32_t usage,
+GpuBuffer gpu_create_buffer(WGPUDevice device, size_t size, uint32_t usage,
const void *data = nullptr);
-ComputePass gpu_create_compute_pass(const char *shader_code,
+ComputePass gpu_create_compute_pass(WGPUDevice device, const char *shader_code,
ResourceBinding *bindings,
int num_bindings);
-RenderPass gpu_create_render_pass(const char *shader_code,
+RenderPass gpu_create_render_pass(WGPUDevice device,
+ WGPUTextureFormat format, // Needed for render pipeline
+ const char *shader_code,
ResourceBinding *bindings, int num_bindings);