diff options
Diffstat (limited to 'src/shader.h')
-rw-r--r-- | src/shader.h | 39 |
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 |