summaryrefslogtreecommitdiff
path: root/src/renderer/ral.c
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-05-20 10:49:57 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-05-20 10:49:57 +1000
commit73d4145f46d2305f45761b8e456df692d1962dfb (patch)
tree5295c8ce5f855ca4a0f1bebe50beee80bae66682 /src/renderer/ral.c
parentc91f86bd744df6f93a93e61d030c55393fb9ef0d (diff)
move standard vertex desc to ral.c
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;
+}