OpenGL: Implement ShaderStage

This commit is contained in:
Lynix
2020-04-19 01:38:38 +02:00
parent 9dd208c3cf
commit 506099fcd7
7 changed files with 99 additions and 268 deletions

View File

@@ -53,8 +53,11 @@ namespace Nz
std::shared_ptr<ShaderStageImpl> OpenGLDevice::InstantiateShaderStage(ShaderStageType type, ShaderLanguage lang, const void* source, std::size_t sourceSize)
{
auto shaderStage = std::make_shared<OpenGLShaderStage>();
if (!shaderStage->Create(*this, type, lang, source, sourceSize))
return {};
return shaderStage;
}
std::unique_ptr<Texture> OpenGLDevice::InstantiateTexture(const TextureInfo& params)