5namespace qml_material::sg
8class ElevationMaterial :
public QSGMaterial {
13 QSGMaterialShader* createShader(QSGRendererInterface::RenderMode)
const override;
14 QSGMaterialType* type()
const override;
15 int compare(
const QSGMaterial* other)
const override;
17 void init_fadeoff_texture(QQuickWindow* win);
18 auto strength_texture() -> QSGTexture*;
21 QSGTexture* m_fadeoff_texture;
24class ElevationShader :
public QSGMaterialShader {
28 bool updateUniformData(QSGMaterialShader::RenderState& state, QSGMaterial* newMaterial,
29 QSGMaterial* oldMaterial)
override;
31 void updateSampledImage(RenderState&,
int binding, QSGTexture** texture,
32 QSGMaterial* newMaterial, QSGMaterial*)
override;