diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-11-04 21:48:24 +1100 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-11-04 21:48:24 +1100 |
commit | 3e0c2e6fa3d6f9bd047e80f577f83c25d67da951 (patch) | |
tree | e83acf453790c321eaba77d0b94488383e7a85d7 /examples/triangle.c | |
parent | 81eb8d48703f12391f1e19ab813005ebe922fabb (diff) |
incrementalvk
Diffstat (limited to 'examples/triangle.c')
-rw-r--r-- | examples/triangle.c | 7 |
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, |