aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/manual/gputhroughput/opaquetexture.qml
blob: 07762e0be36ffc4a06a578cc8fae53429d820b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import QtQuick 2.0

// Stacks x number of opaque textures on top of each other.
// Will go a lot higher than blendedtexture if target hardware supports
// [early-z](https://en.wikipedia.org/?title=Z-buffering)
Item {
    id: root;

    property int count;
    property int staticCount: 0

    Repeater {
        model: root.count;
        Rectangle {
            width: root.width
            height: root.height
            color: Qt.hsla((index * .271) % 1.0, 0.5, 0.5);
            z: index
            layer.enabled: true
            layer.effect: ShaderEffect {
                blending: false
            }
        }
    }


}