summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-11-04 21:48:24 +1100
committerOmniscient <omniscient.oce@gmail.com>2024-11-04 21:48:24 +1100
commit3e0c2e6fa3d6f9bd047e80f577f83c25d67da951 (patch)
treee83acf453790c321eaba77d0b94488383e7a85d7
parent81eb8d48703f12391f1e19ab813005ebe922fabb (diff)
incrementalvk
-rw-r--r--examples/triangle.c7
-rw-r--r--include/celeritas.h4
-rw-r--r--src/backend_vk.c5
3 files changed, 13 insertions, 3 deletions
diff --git a/examples/triangle.c b/examples/triangle.c
index 8cf8dd2..6c2e65c 100644
--- a/examples/triangle.c
+++ b/examples/triangle.c
@@ -35,7 +35,12 @@ int main() {
// create rendering pipeline
gfx_pipeline_desc pipeline_desc = {
.label = "Triangle drawing pipeline",
- .vertex_desc = NULL, // TODO
+ .vertex_desc = {
+ .label = "basic static vertex format",
+ .attributes = { ATTR_F32x4, ATTR_F32x2 },
+ .attribute_count = 2,
+ .padding = 8 // bytes
+ },
.vertex = {
.source = NULL,
.is_spirv = false,
diff --git a/include/celeritas.h b/include/celeritas.h
index 4a75abd..4e6f682 100644
--- a/include/celeritas.h
+++ b/include/celeritas.h
@@ -796,4 +796,6 @@ typedef struct threadpool {
size_t n_workers;
} threadpool;
-void threadpool_add_task(); \ No newline at end of file
+void threadpool_create();
+void threadpool_destroy();
+void threadpool_add_task();
diff --git a/src/backend_vk.c b/src/backend_vk.c
index 585eae8..231d363 100644
--- a/src/backend_vk.c
+++ b/src/backend_vk.c
@@ -131,7 +131,10 @@ void ral_encoder_finish(gpu_encoder* enc) {}
void ral_encoder_submit(gpu_encoder* enc) {}
void ral_encoder_finish_and_submit(gpu_encoder* enc) {}
-pipeline_handle ral_gfx_pipeline_create(gfx_pipeline_desc desc) {}
+pipeline_handle ral_gfx_pipeline_create(gfx_pipeline_desc desc) {
+
+
+}
void ral_gfx_pipeline_destroy(pipeline_handle handle) {}
void ral_encode_bind_pipeline(gpu_encoder* enc, pipeline_handle pipeline) {}