Rename QDeclarative symbols to QQuick and QQml
[profile/ivi/qtdeclarative.git] / tests / auto / quick / qquickitemlayer / data / SamplerNameChange.qml
1 import QtQuick 2.0
2
3 Rectangle {
4     width: 200
5     height: 200
6     color: "blue"
7     layer.enabled: true
8     layer.effect: ShaderEffect {
9         fragmentShader: "
10             uniform sampler2D foo;
11             uniform lowp float qt_Opacity;
12             varying highp vec2 qt_TexCoord0;
13             void main() {
14                 gl_FragColor = texture2D(foo, qt_TexCoord0) * qt_Opacity;
15             }"
16     }
17     Component.onCompleted: layer.samplerName = "foo"
18 }