Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. We are looking for feedback on the naming of a new user research platform that we are working on.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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

Discussion in '2019.1 Beta' started by Peter77, Mar 9, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,313
    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.


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

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

    Expected
    No stretched image, just like in D3D11.
     
    LeonhardP likes this.
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,313
unityunity