Rewrite the macOS renderer using CAMetalLayer

This allows v-sync to be disabled on macOS and lets us remove a whole bunch of old hacks.

Further optimizations of the new renderer are still needed.
This commit is contained in:
Cameron Gutman
2024-02-07 02:40:35 -06:00
parent bdc7d53515
commit db06239018
4 changed files with 402 additions and 247 deletions
+1
View File
@@ -82,5 +82,6 @@
<file alias="d3d11_genyuv_pixel.fxc">shaders/d3d11_genyuv_pixel.fxc</file>
<file alias="d3d11_bt601lim_pixel.fxc">shaders/d3d11_bt601lim_pixel.fxc</file>
<file alias="d3d11_bt2020lim_pixel.fxc">shaders/d3d11_bt2020lim_pixel.fxc</file>
<file alias="vt_renderer.metal">shaders/vt_renderer.metal</file>
</qresource>
</RCC>