summaryrefslogtreecommitdiff
path: root/src/renderer/bind_group_layouts.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/bind_group_layouts.h
parent896c88ac83229d7bac62f521cc4e011cfd1d6457 (diff)
start on pipeline layout, pipeline, renderpass
Diffstat (limited to 'src/renderer/bind_group_layouts.h')
-rw-r--r--src/renderer/bind_group_layouts.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/renderer/bind_group_layouts.h b/src/renderer/bind_group_layouts.h
new file mode 100644
index 0000000..d163fab
--- /dev/null
+++ b/src/renderer/bind_group_layouts.h
@@ -0,0 +1,30 @@
+/**
+ * @file bind_group_layouts.h
+ * @author your name (you@domain.com)
+ * @brief Common bindgroups (descriptor set layouts)
+ * @version 0.1
+ * @date 2024-04-28
+ *
+ * @copyright Copyright (c) 2024
+ *
+ */
+#pragma once
+#include "defines.h"
+#include "maths_types.h"
+
+// Three major sets
+
+// 1. Scene / Global
+typedef struct bg_globals {
+ f32 total_time;
+ f32 delta_time;
+ mat4 view;
+ mat4 projection;
+} bg_globals;
+
+// 2. Material (once per object)
+
+// 3. Per draw call
+typedef struct bg_model {
+ mat4 model;
+} bg_model;