summaryrefslogtreecommitdiff
path: root/examples/triangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/triangle.c')
-rw-r--r--examples/triangle.c7
1 files changed, 6 insertions, 1 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,