Page MenuHomePhorge

Shader.cpp
No OneTemporary

Size
802 B
Referenced Files
None
Subscribers
None

Shader.cpp

#include <echo/Graphics/Shader.h>
namespace Echo
{
Shader::Shader(const std::string& shaderType, const std::string& name) : Resource<Shader>(true),
mType(shaderType),
mVersion(0)
{
SetName(name);
}
Shader::~Shader()
{
}
const std::string& Shader::GetType() const
{
return mType;
}
const std::string& Shader::GetSource() const
{
return mSource;
}
void Shader::SetSource(const std::string& source)
{
mSource = source;
mVersion++;
}
size_t Shader::GetVersion() const
{
return mVersion;
}
size_t Shader::OnRequestMemoryRelease()
{
//Currently not supported.
return 0;
}
bool Shader::_Load()
{
//Always loaded
return true;
}
bool Shader::_Unload()
{
//Now unload state
return true;
}
}

File Metadata

Mime Type
text/x-c++
Expires
Wed, Jan 15, 9:35 PM (3 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
72060
Default Alt Text
Shader.cpp (802 B)

Event Timeline