aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarks/manual/gputhroughput/blendedrect.qml
blob: cd0d2c6a185c952e6147024efa8317a33b8a1531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQuick 2.0

// Stacks x number of alphablended rectangles on top of each other.
// Rough test of fillrate.
Item {
    id: root;
    property int count: 10
    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, 0.5);
        }
    }
}