// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
#pragma once
#if GRAPHICS_API_OPENGL
#include "Engine/Graphics/Shaders/GPUShader.h"
#include "GPUDeviceOGL.h"
#include "GPUResourceOGL.h"
///
/// Shader for OpenGL
///
class GPUShaderOGL : public GPUResourceOGL
{
public:
///
/// Initializes a new instance of the class.
///
/// The device.
/// The name.
ShaderOGL(GPUDeviceOGL* device, const String& name);
///
/// Destructor
///
~ShaderOGL();
public:
// [GPUResourceOGL]
void ReleaseGPU() final override;
// [GPUShader]
bool Create(MemoryReadStream& stream) override;
};
#endif