diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2018-04-04 12:48:39 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2018-04-12 12:14:18 +0000 |
commit | 0300886c134799c7b3d1331f99cb6777ad568ba8 (patch) | |
tree | 6dc5f50b70340a8bfd32036b1058c529a6c3d6c2 /src/plugins/platforms/cocoa/qnsview.h | |
parent | 5c63e6fd7541609c3fadb694c071b42e93b7acf5 (diff) |
Cocoa: Add QNSView Metal Layer support
Make sure the layer is updated on window resize and
screen change.
Add a support test and print a warning if we try to
create a Metal layer without Metal system support.
This test should ideally be done earlier, before
configuring the QWindow to use Metal.
Link against the Metal framework: The minimum deployment
target is already 10.11 so this does not add additional
deployment requirements.
Change-Id: I0a38e824d0b6042bb52520dfaf0958ce21bb40b8
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qnsview.h')
-rw-r--r-- | src/plugins/platforms/cocoa/qnsview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qnsview.h b/src/plugins/platforms/cocoa/qnsview.h index 100f96d27a..ba696f4b5f 100644 --- a/src/plugins/platforms/cocoa/qnsview.h +++ b/src/plugins/platforms/cocoa/qnsview.h @@ -41,6 +41,7 @@ #define QNSVIEW_H #include <AppKit/AppKit.h> +#include <MetalKit/MetalKit.h> #include "private/qcore_mac_p.h" |