diff options
Diffstat (limited to 'src/benchmarks/manual/gputhroughput/blendedrect.qml')
-rw-r--r-- | src/benchmarks/manual/gputhroughput/blendedrect.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/benchmarks/manual/gputhroughput/blendedrect.qml b/src/benchmarks/manual/gputhroughput/blendedrect.qml new file mode 100644 index 0000000..cd0d2c6 --- /dev/null +++ b/src/benchmarks/manual/gputhroughput/blendedrect.qml @@ -0,0 +1,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); + } + } +} |