summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-12 15:07:57 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-12 15:07:57 +1000
commit634f22e2b6d538fc5a45da2b1b23af631f6f8703 (patch)
treeeee6cb6dab16408bd6b44f93996204cd7fbd5c2e /examples
parentd52d39d7843ed2203b001a822efe6d4b692c2642 (diff)
more restructuring
Diffstat (limited to 'examples')
-rw-r--r--examples/cube/ex_cube.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/cube/ex_cube.c b/examples/cube/ex_cube.c
index 712485c..a115fe3 100644
--- a/examples/cube/ex_cube.c
+++ b/examples/cube/ex_cube.c
@@ -52,6 +52,10 @@ int main() {
DEBUG("render capacity %d", g_core.default_scene.renderables->capacity);
+ vertex_description vertex_input = {0};
+ vertex_desc_add(&vertex_input, "inPosition", ATTR_F32x2);
+ vertex_desc_add(&vertex_input, "inColor", ATTR_F32x3);
+
shader_data mvp_uniforms_data = { .data = NULL, .shader_data_get_layout = &mvp_uniforms_layout };
gpu_renderpass_desc pass_description = {};
@@ -67,6 +71,7 @@ int main() {
struct graphics_pipeline_desc pipeline_description = {
.debug_name = "Basic Pipeline",
+ .vertex_desc = vertex_input,
.data_layouts = { mvp_uniforms_data },
.data_layouts_count = 1,
.vs = { .debug_name = "Triangle Vertex Shader",