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.cpp |
Diffstat (limited to 'Runtime/Shaders/ShaderSupportScripts.cpp')
-rw-r--r-- | Runtime/Shaders/ShaderSupportScripts.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Runtime/Shaders/ShaderSupportScripts.cpp b/Runtime/Shaders/ShaderSupportScripts.cpp new file mode 100644 index 0000000..3f60afa --- /dev/null +++ b/Runtime/Shaders/ShaderSupportScripts.cpp @@ -0,0 +1,19 @@ +#include "UnityPrefix.h" +#include "ShaderSupportScripts.h" +#include "Runtime/Utilities/PathNameUtility.h" + +IMPLEMENT_CLASS (CGProgram) + +CGProgram::CGProgram (MemLabelId label, ObjectCreationMode mode) +: Super(label, mode) +{} + +CGProgram::~CGProgram () +{ +} + +void CGProgram::SetCGProgram( const std::string& str ) +{ + m_CGProgram = str; + m_CGProgramName = GetLastPathNameComponent(m_CGProgram); +} |