(Case 1135210) Vulkan/D3D12: Stretched image in fullscreen

I’m not sure if it’s beta related, as I didn’t try to reproduce it with an older version of Unity. Please feel free to move the thread if it’s not.

While testing different graphics api’s ( here ), I noticed that D3D12 and Vulkan stretch the image if the screen aspect ration doesn’t match the monitor aspect ratio. D3D11 and GLCore display black borders at the sides, which is missing with D3D12/Vulkan.

Video

Reproduce

  • Open user attached project
  • Build a Windows 64bit player
  • Start the player several times, each time using one of the following command-line options: -force-d3d11 -force-d3d12 -force-vulkan -force-glcore
  • In the resolution dialog, select 640x480 (or any aspect ratio that does not match your native monitor resolution) and full-screen.
  • Press Play

Actual

  • D3D12 stretches the image.
  • Vulkan stretches the image.

Expected
No stretched image, just like in D3D11.

1 Like

Unity QA was able to reproduce the issue and it can be found in the public issue tracker now: