From 73d4145f46d2305f45761b8e456df692d1962dfb Mon Sep 17 00:00:00 2001 From: Omniscient Date: Mon, 20 May 2024 10:49:57 +1000 Subject: move standard vertex desc to ral.c --- src/renderer/ral.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/renderer/ral.c') diff --git a/src/renderer/ral.c b/src/renderer/ral.c index 2ae7c23..7d868be 100644 --- a/src/renderer/ral.c +++ b/src/renderer/ral.c @@ -32,3 +32,11 @@ void vertex_desc_add(vertex_description* builder, const char* name, vertex_attri builder->attributes_count++; } + +vertex_description static_3d_vertex_description() { + vertex_description builder = { .debug_label = "vertex" }; + vertex_desc_add(&builder, "position", ATTR_F32x3); + vertex_desc_add(&builder, "normal", ATTR_F32x3); + vertex_desc_add(&builder, "texCoords", ATTR_F32x2); + return builder; +} -- cgit v1.2.3-70-g09d2