mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
28 lines
519 B
C++
28 lines
519 B
C++
#ifndef CC_GFXGLES2_GLES2_SHADER_H_
|
|
#define CC_GFXGLES2_GLES2_SHADER_H_
|
|
|
|
namespace cc {
|
|
namespace gfx {
|
|
|
|
class GLES2GPUShader;
|
|
|
|
class CC_GLES2_API GLES2Shader : public Shader {
|
|
public:
|
|
GLES2Shader(Device *device);
|
|
~GLES2Shader();
|
|
|
|
public:
|
|
virtual bool initialize(const ShaderInfo &info) override;
|
|
virtual void destroy() override;
|
|
|
|
CC_INLINE GLES2GPUShader *gpuShader() const { return _gpuShader; }
|
|
|
|
private:
|
|
GLES2GPUShader *_gpuShader = nullptr;
|
|
};
|
|
|
|
} // namespace gfx
|
|
} // namespace cc
|
|
|
|
#endif
|