1 | // Copyright (C) 2018 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QT3DRENDER_RENDER_GRAPHICSHELPERES3_1_H |
5 | #define QT3DRENDER_RENDER_GRAPHICSHELPERES3_1_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists for the convenience |
12 | // of other Qt classes. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <graphicshelperes3_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | namespace Qt3DRender { |
23 | namespace Render { |
24 | namespace OpenGL { |
25 | |
26 | class GraphicsHelperES3_1 : public GraphicsHelperES3 |
27 | { |
28 | public: |
29 | GraphicsHelperES3_1(); |
30 | ~GraphicsHelperES3_1(); |
31 | |
32 | bool supportsFeature(Feature feature) const override; |
33 | void bindImageTexture(GLuint imageUnit, GLuint texture, GLint mipLevel, GLboolean layered, GLint layer, GLenum access, GLenum format) override; |
34 | void dispatchCompute(GLuint wx, GLuint wy, GLuint wz) override; |
35 | void memoryBarrier(QMemoryBarrier::Operations barriers) override; |
36 | void drawArraysIndirect(GLenum mode,void *indirect) override; |
37 | void drawElementsIndirect(GLenum mode, GLenum type, void *indirect) override; |
38 | void bindShaderStorageBlock(GLuint programId, GLuint shaderStorageBlockIndex, GLuint shaderStorageBlockBinding) override; |
39 | std::vector<ShaderStorageBlock> programShaderStorageBlocks(GLuint programId) override; |
40 | |
41 | // QGraphicHelperInterface interface |
42 | UniformType uniformTypeFromGLType(GLenum glType) override; |
43 | uint uniformByteSize(const ShaderUniform &description) override; |
44 | void buildUniformBuffer(const QVariant &v, const ShaderUniform &description, QByteArray &buffer) override; |
45 | }; |
46 | |
47 | } // namespace OpenGL |
48 | } // namespace Render |
49 | } // namespace Qt3DRender |
50 | |
51 | QT_END_NAMESPACE |
52 | |
53 | #endif // QT3DRENDER_RENDER_GRAPHICSHELPERES3_1_H |
54 | |