summaryrefslogtreecommitdiff
path: root/include/render_graph.h
diff options
context:
space:
mode:
authorChuyan Zhang <chuyan@ucsb.edu>2024-10-10 18:51:05 -0700
committerChuyan Zhang <chuyan@ucsb.edu>2024-10-10 18:51:05 -0700
commit6271f5ce797bf12be64c710b66b1b9e93a239829 (patch)
tree44cc6a5ab5a20f7e55829f18b68a9f1191dac81d /include/render_graph.h
parentba27f3c22e79b91a2573b7efd00c5a3bbdb96dbc (diff)
downloadiris-main.tar.gz
iris-main.zip
move to new resource abstractionHEADmain
Diffstat (limited to 'include/render_graph.h')
-rw-r--r--include/render_graph.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/include/render_graph.h b/include/render_graph.h
new file mode 100644
index 0000000..b32d3eb
--- /dev/null
+++ b/include/render_graph.h
@@ -0,0 +1,57 @@
+#pragma once
+
+#include "render_pass.h"
+#include <cstdint>
+#include <vector>
+
+namespace iris {
+
+struct BufferDesc {
+
+};
+
+struct ImageDesc {
+
+};
+
+struct ImageWithSamplerDesc {
+
+};
+
+struct AccelerationStructureDesc {
+
+};
+
+struct CreatedRenderResource {
+ enum struct Type {
+ Buffer,
+ Image,
+ ImageWithSampler,
+ AccelerationStructure,
+ } type;
+
+
+};
+
+struct ImportedRenderResource {
+
+};
+
+struct RenderResource {
+ enum struct Type {
+ Created,
+ Imported,
+ } type;
+
+ union {
+ CreatedRenderResource created;
+ ImportedRenderResource imported;
+ } inner;
+};
+
+struct RenderGraph {
+ std::vector<RenderPass> passes;
+ std::vector<RenderResource> resources;
+};
+
+} // namespace iris \ No newline at end of file