diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-03-31 13:20:17 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-04-06 12:06:45 +0000 |
commit | 8142e1405df48f76bdf7b2a14d22ee5e20d2af59 (patch) | |
tree | b47b2d45aa07fc921449159067094d068f3ebfbf /tests/manual/nodetypes | |
parent | a3949e0d2ff8a2e7ae27d45bd560289fb95540f7 (diff) |
D3D12: Support msaa on the default render target
Pick up window->format().samples() and use it. There is nothing that does
resolving and extra buffer management for us, do it all manually.
Change-Id: I76206574a24dfdd17120433e924a9841c9854904
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'tests/manual/nodetypes')
-rw-r--r-- | tests/manual/nodetypes/nodetypes.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/manual/nodetypes/nodetypes.cpp b/tests/manual/nodetypes/nodetypes.cpp index c5b46a3317..3e82fc7d04 100644 --- a/tests/manual/nodetypes/nodetypes.cpp +++ b/tests/manual/nodetypes/nodetypes.cpp @@ -70,6 +70,12 @@ int main(int argc, char **argv) Helper helper; QQuickView view; + if (app.arguments().contains(QLatin1String("--multisample"))) { + qDebug("Requesting sample count 4"); + QSurfaceFormat fmt; + fmt.setSamples(4); + view.setFormat(fmt); + } view.engine()->rootContext()->setContextProperty(QLatin1String("helper"), &helper); view.setResizeMode(QQuickView::SizeRootObjectToView); view.resize(1024, 768); |