summaryrefslogtreecommitdiff
path: root/src/renderer/renderpasses.h
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-04-28 21:52:10 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-04-28 21:52:10 +1000
commit24e2e5f0b8675d498c188f221ea0a309d5911206 (patch)
tree96e9499dcdc5322bdef9ac2bb6ba9aea541a3e63 /src/renderer/renderpasses.h
parent896c88ac83229d7bac62f521cc4e011cfd1d6457 (diff)
start on pipeline layout, pipeline, renderpass
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