summaryrefslogtreecommitdiff
path: root/src/render_pass.h
diff options
context:
space:
mode:
authorChuyan Zhang <chuyan@ucsb.edu>2024-10-09 22:11:24 -0700
committerChuyan Zhang <chuyan@ucsb.edu>2024-10-09 22:11:24 -0700
commitd25c392cec57e8c561899bf75668da79c4e67aed (patch)
tree4289461c83345024a5a1b93295043d61d4acd246 /src/render_pass.h
parent60b9692af28a353c4e5813d1723422477e31f433 (diff)
downloadiris-d25c392cec57e8c561899bf75668da79c4e67aed.tar.gz
iris-d25c392cec57e8c561899bf75668da79c4e67aed.zip
add shader compile infra
Diffstat (limited to 'src/render_pass.h')
-rw-r--r--src/render_pass.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/render_pass.h b/src/render_pass.h
new file mode 100644
index 0000000..b01bcae
--- /dev/null
+++ b/src/render_pass.h
@@ -0,0 +1,23 @@
+#pragma once
+
+enum struct RenderPassType {
+ RayTracing,
+ Compute,
+ Rasterization // Not intended to implement, want to make a pure ray tracer
+};
+
+struct RayTracingPass {
+
+};
+
+struct ComputePass {
+
+};
+
+struct RenderPass {
+ RenderPassType type;
+ union {
+ RayTracingPass ray_tracing;
+ ComputePass compute;
+ } inner;
+};