summaryrefslogtreecommitdiff
path: root/src/renderer/ral.h
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 /src/renderer/ral.h
parentd52d39d7843ed2203b001a822efe6d4b692c2642 (diff)
more restructuring
Diffstat (limited to 'src/renderer/ral.h')
-rw-r--r--src/renderer/ral.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/renderer/ral.h b/src/renderer/ral.h
index 0df23ea..30d5413 100644
--- a/src/renderer/ral.h
+++ b/src/renderer/ral.h
@@ -54,6 +54,7 @@ typedef struct shader_desc {
struct graphics_pipeline_desc {
const char* debug_name;
+ vertex_description vertex_desc;
shader_desc vs; /** @brief Vertex shader stage */
shader_desc fs; /** @brief Fragment shader stage */
@@ -150,8 +151,11 @@ void gpu_sampler_create();
// --- Vertex formats
bytebuffer vertices_as_bytebuffer(arena* a, vertex_format format, vertex_darray* vertices);
+void vertex_desc_add(vertex_description* builder, const char* name, vertex_attrib_type type);
+
// TODO: Bindgroup texture samplers / shader resources
// TEMP
void gpu_temp_draw(size_t n_verts);
+