Added Shader::IsValid()
Former-commit-id: 829320e4fd92dafb829019d875135ca9b75a3db2
This commit is contained in:
@@ -214,6 +214,11 @@ bool NzShader::IsLoaded(nzShaderType type) const
|
||||
return m_impl->IsLoaded(type);
|
||||
}
|
||||
|
||||
bool NzShader::IsValid() const
|
||||
{
|
||||
return m_impl != nullptr;
|
||||
}
|
||||
|
||||
bool NzShader::Load(nzShaderType type, const NzString& source)
|
||||
{
|
||||
#if NAZARA_RENDERER_SAFE
|
||||
|
||||
Reference in New Issue
Block a user