summaryrefslogtreecommitdiff
path: root/examples/triangle
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-11 22:06:55 +1000
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-11 22:06:55 +1000
commit677ab09b0dc3b6d9c872b732f8e31543fa2d11bb (patch)
treef8aa923eb9d97c561341579fa4e575e4804ad9f4 /examples/triangle
parent08d7e23fd5ed95953822a72ba11d4b6cd96b2846 (diff)
WIP: shader data
Diffstat (limited to 'examples/triangle')
-rw-r--r--examples/triangle/ex_triangle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/triangle/ex_triangle.c b/examples/triangle/ex_triangle.c
index c6f0e54..5d8f0cf 100644
--- a/examples/triangle/ex_triangle.c
+++ b/examples/triangle/ex_triangle.c
@@ -11,6 +11,7 @@
#include "ral.h"
#include "ral_types.h"
#include "render.h"
+#include "render_types.h"
extern core g_core;
@@ -53,6 +54,7 @@ int main() {
};
gpu_pipeline* gfx_pipeline = gpu_graphics_pipeline_create(pipeline_description);
+ // Load triangle vertex and index data
buffer_handle triangle_vert_buf =
gpu_buffer_create(sizeof(vertices), CEL_BUFFER_VERTEX, CEL_BUFFER_FLAG_GPU, vertices);