summaryrefslogtreecommitdiff
path: root/src/shader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader.h')
-rw-r--r--src/shader.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/shader.h b/src/shader.h
index b1be8a8..b34fd92 100644
--- a/src/shader.h
+++ b/src/shader.h
@@ -12,6 +12,8 @@ struct ShaderDesc {
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 {
@@ -20,6 +22,7 @@ struct ShaderDesc {
eClosestHit,
eAnyHit,
eIntersection,
+ eCallable,
eCompute,
} type;
@@ -27,7 +30,10 @@ struct ShaderDesc {
std::vector<uint32_t> compiled_binary;
static Type shader_type_from_string(std::string_view type);
- ShaderDesc(const std::string_view path);
+ 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