OpenGL: Implement ShaderStage
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user