From 3e0c2e6fa3d6f9bd047e80f577f83c25d67da951 Mon Sep 17 00:00:00 2001 From: Omniscient Date: Mon, 4 Nov 2024 21:48:24 +1100 Subject: incremental --- examples/triangle.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'examples/triangle.c') 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, -- cgit v1.2.3-70-g09d2