aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/nodetypes
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-03-11 15:54:25 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-03-15 11:55:09 +0000
commit843f72bd317f195ee31921acf8132074a7c50d4a (patch)
tree86bb7a4363fe4696864bc6f42de9f209417d0849 /tests/manual/nodetypes
parent9924cee26c8fecf5a2de3e07a117de588557b19b (diff)
D3D12: Add mipmaps and smooth texture material
The smooth material is requested by antialiasing: true. This is not the same as setting smooth: true which changes the filtering. Mipmap support is only available for power-of-two textures for now. Others will get scaled. In addition, texture releases are now properly deferred and unnecessary Wait() calls are avoided. Change-Id: Ib9d909b1c4e2158564ab8bcfb933c088cf0da239 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'tests/manual/nodetypes')
-rw-r--r--tests/manual/nodetypes/Images.qml19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/manual/nodetypes/Images.qml b/tests/manual/nodetypes/Images.qml
index 34badcdb4b..f37ed1217b 100644
--- a/tests/manual/nodetypes/Images.qml
+++ b/tests/manual/nodetypes/Images.qml
@@ -38,7 +38,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.3
Item {
Rectangle {
@@ -50,11 +50,28 @@ Item {
}
Image {
+ id: im
source: "qrc:/qt.png"
+ mipmap: true
+
+ // changing the mipmap property results in the creation of a brand new
+ // texture resource. enable the following to test.
+// Timer {
+// interval: 5000
+// onTriggered: im.mipmap = false
+// running: true
+// }
Image {
anchors.centerIn: parent
source: "qrc:/face-smile.png"
}
}
+
+ Image {
+ source: "qrc:/face-smile.png"
+ anchors.bottom: parent.bottom
+ anchors.right: parent.right
+ antialiasing: true
+ }
}