UI: Massive revamp, new features and improvements
This commit is contained in:
@ -110,8 +110,13 @@ bool PostProcessingShader::LoadFromFile(std::string name, const char* filename)
|
||||
if (!code.has_value() || code->empty())
|
||||
return false;
|
||||
|
||||
return LoadFromString(std::move(name), code.value());
|
||||
}
|
||||
|
||||
bool PostProcessingShader::LoadFromString(std::string name, std::string code)
|
||||
{
|
||||
m_name = std::move(name);
|
||||
m_code = std::move(code.value());
|
||||
m_code = std::move(code);
|
||||
m_options.clear();
|
||||
LoadOptions();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user