summaryrefslogtreecommitdiff
path: root/src/shader.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 /src/shader.h
parentba27f3c22e79b91a2573b7efd00c5a3bbdb96dbc (diff)
downloadiris-main.tar.gz
iris-main.zip
move to new resource abstractionHEADmain
Diffstat (limited to 'src/shader.h')
-rw-r--r--src/shader.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/shader.h b/src/shader.h
deleted file mode 100644
index b34fd92..0000000
--- a/src/shader.h
+++ /dev/null
@@ -1,39 +0,0 @@
-#pragma once
-#include <cstdint>
-#include <cstdlib>
-#include <string>
-#include <string_view>
-#include <vector>
-
-namespace iris {
-
-struct ShaderDesc {
- // Name of the shader, filename if loaded from file
- std::string name;
- // Source code of the shader
- std::string source;
- // Entry name of the shader
- std::string entry_point;
-
- // Shader type
- enum struct Type {
- eRayGen,
- eMiss,
- eClosestHit,
- eAnyHit,
- eIntersection,
- eCallable,
- eCompute,
- } type;
-
- // Compiled binary
- std::vector<uint32_t> compiled_binary;
-
- static Type shader_type_from_string(std::string_view type);
- ShaderDesc(
- const std::string_view path,
- std::vector<std::string> defines,
- std::vector<std::pair<std::string, std::string>> valued_defines);
-};
-
-} // namespace iris \ No newline at end of file