diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Shaders/ShaderSupportScripts.h |
Diffstat (limited to 'Runtime/Shaders/ShaderSupportScripts.h')
-rw-r--r-- | Runtime/Shaders/ShaderSupportScripts.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Runtime/Shaders/ShaderSupportScripts.h b/Runtime/Shaders/ShaderSupportScripts.h new file mode 100644 index 0000000..e799721 --- /dev/null +++ b/Runtime/Shaders/ShaderSupportScripts.h @@ -0,0 +1,26 @@ +#ifndef SHADERSUPPORTSCRIPTS_H +#define SHADERSUPPORTSCRIPTS_H + +#include "Runtime/Scripting/TextAsset.h" +#include <string> + + +// Shader include files (mainly exist so that a different icon can be used on them) +class CGProgram : public TextAsset { +public: + REGISTER_DERIVED_CLASS (CGProgram, TextAsset) + + CGProgram (MemLabelId label, ObjectCreationMode mode); + + virtual const UnityStr& GetScriptClassName() const { return m_CGProgramName; } + + void SetCGProgram( const std::string& str ); + const UnityStr& GetCGProgram () const { return m_CGProgram; } + +private: + // Placeholder string used for the original CG program - we only use this at importing + UnityStr m_CGProgram; + UnityStr m_CGProgramName; +}; + +#endif |