1// Copyright (C) 2021 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QT3DRENDER_SCENE3DSGMATERIALSHADER_P_H
4#define QT3DRENDER_SCENE3DSGMATERIALSHADER_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QtQuick/QSGMaterialShader>
18#include <private/qglobal_p.h>
19
20QT_BEGIN_NAMESPACE
21
22namespace Qt3DRender {
23
24class Scene3DSGMaterialShader : public QSGMaterialShader
25{
26public:
27 Scene3DSGMaterialShader();
28 static QSGMaterialType type;
29
30protected:
31 // QSGMaterialShader interface
32 bool updateUniformData(RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) final;
33 void updateSampledImage(RenderState &state, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) final;
34};
35
36} // namespace Qt3DRender
37
38QT_END_NAMESPACE
39
40#endif // QT3DRENDER_SCENE3DSGMATERIALSHADER_P_H
41

source code of qt3d/src/quick3d/imports/scene3d/scene3dsgmaterialshader_p.h