summaryrefslogtreecommitdiff
path: root/src/renderer/ral.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/ral.c')
-rw-r--r--src/renderer/ral.c8
1 files changed, 8 insertions, 0 deletions
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;
+}