Rewrite overlay support in Metal renderer to avoid additional subviews

Subviews cause our Metal layer to fall out of the direct composition path on Intel hardware
This commit is contained in:
Cameron Gutman committed 2024-02-11 00:15:07 -06:00
1 parent 767215fce5
commit 8959ddbeb6
2 files changed
+140 -72

No files matched your search

+6
View File
@@ -33,3 +33,9 @@ fragment float4 ps_draw_biplanar(Vertex v [[ stage_in ]],
rgb.b = dot(yuv, cscParams.matrix[2]);
return float4(rgb, 1.0f);
}
fragment float4 ps_draw_rgb(Vertex v [[ stage_in ]],
texture2d<float> rgbTexture [[ texture(0) ]])
{
return rgbTexture.sample(s, v.texCoords);
}