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
19QT_BEGIN_NAMESPACE
20
21namespace Qt3DRender {
22
23class Q_AUTOTEST_EXPORT Scene3DSGMaterialShader : public QSGMaterialShader
24{
25public:
26 Scene3DSGMaterialShader();
27 static QSGMaterialType type;
28
29protected:
30 // QSGMaterialShader interface
31 bool updateUniformData(RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) final;
32 void updateSampledImage(RenderState &state, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) final;
33};
34
35} // namespace Qt3DRender
36
37QT_END_NAMESPACE
38
39#endif // QT3DRENDER_SCENE3DSGMATERIALSHADER_P_H
40

source code of qt3d/src/quick3d/quick3dscene3d/scene3dsgmaterialshader_p.h