summaryrefslogtreecommitdiff
path: root/Runtime/Shaders/ShaderSupportScripts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Shaders/ShaderSupportScripts.cpp')
-rw-r--r--Runtime/Shaders/ShaderSupportScripts.cpp19
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);
+}