aboutsummaryrefslogtreecommitdiff
path: root/src/shader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader.h')
-rw-r--r--src/shader.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/shader.h b/src/shader.h
index 653924b..29d6e5e 100644
--- a/src/shader.h
+++ b/src/shader.h
@@ -33,12 +33,18 @@ class Shader {
void SetName(const std::string& name) { name_ = name; }
const std::string& GetName() const { return name_; }
+ void SetFilePath(const std::string& path) { file_path_ = path; }
+ const std::string& GetFilePath() const { return file_path_; }
+
void SetFormat(ShaderFormat fmt) { shader_format_ = fmt; }
ShaderFormat GetFormat() const { return shader_format_; }
- /// Sets the compiled shader to |data|.
+ void SetTargetEnv(const std::string& env) { target_env_ = env; }
+ const std::string& GetTargetEnv() const { return target_env_; }
+
+ /// Sets the source shader to |data|.
void SetData(const std::string& data) { data_ = data; }
- /// Returns the compiled shader source.
+ /// Returns the source shader source.
const std::string& GetData() const { return data_; }
private:
@@ -46,6 +52,8 @@ class Shader {
ShaderFormat shader_format_;
std::string data_;
std::string name_;
+ std::string file_path_;
+ std::string target_env_;
};
} // namespace amber