Skip to content

Commit 69ce287

Browse files
committed
mac/vulkan: log opaque state (direct-to-display possible) of metal layer
since we have a mapping layer between vulkan and metal (MoltenVK) we don't actually know when the layer is opaque and direct-to-display is possible. log opaque state.
1 parent b6e749c commit 69ce287

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

video/out/mac/metal_layer.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ class MetalLayer: CAMetalLayer {
7676
}
7777
}
7878

79+
override var isOpaque: Bool {
80+
didSet {
81+
if isOpaque != oldValue {
82+
log.verbose("Metal layer is opaque (direct-to-display possible): \(isOpaque)")
83+
}
84+
}
85+
}
86+
7987
init(common com: MacCommon) {
8088
common = com
8189
super.init()

0 commit comments

Comments
 (0)