Added Shader::IsValid()
Former-commit-id: 829320e4fd92dafb829019d875135ca9b75a3db2
This commit is contained in:
parent
9199e60436
commit
6b9c88221a
|
|
@ -43,6 +43,7 @@ class NAZARA_API NzShader : public NzResource, NzNonCopyable
|
|||
|
||||
bool IsCompiled() const;
|
||||
bool IsLoaded(nzShaderType type) const;
|
||||
bool IsValid() const;
|
||||
|
||||
bool Load(nzShaderType type, const NzString& source);
|
||||
bool LoadFromFile(nzShaderType type, const NzString& source);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue