summaryrefslogtreecommitdiff
path: root/src/renderer/renderpasses.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/renderpasses.h')
-rw-r--r--src/renderer/renderpasses.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/renderer/renderpasses.h b/src/renderer/renderpasses.h
new file mode 100644
index 0000000..67badaa
--- /dev/null
+++ b/src/renderer/renderpasses.h
@@ -0,0 +1,31 @@
+/**
+ * @file renderpasses.h
+ * @author your name (you@domain.com)
+ * @brief Built-in renderpasses to the engine
+ * @version 0.1
+ * @date 2024-04-28
+ *
+ * @copyright Copyright (c) 2024
+ *
+ */
+#pragma once
+#include "maths_types.h"
+#include "ral.h"
+#include "render.h"
+
+// Shadowmap pass
+// Blinn-phong pass
+// Unlit pass
+// Debug visualisations pass
+
+typedef struct render_entity {
+ model* model;
+ transform tf;
+} render_entity;
+
+// Don't need to pass in *anything*.
+gpu_renderpass* renderpass_blinn_phong_create();
+void renderpass_blinn_phong_execute(gpu_renderpass* pass, render_entity* entities, size_t entity_count);
+
+gpu_renderpass* renderpass_shadows_create();
+void renderpass_shadows_execute(gpu_renderpass* pass, render_entity* entities, size_t entity_count); \ No newline at end of file