HansKristian-Work / vkd3d-proton

Fork of VKD3D. Development branches for Proton's Direct3D 12 implementation.
GNU Lesser General Public License v2.1
1.86k stars 194 forks source link

vkd3d: R32_FLOAT supports both COLOR and DEPTH but is currently only reporting COLOR #1907

Closed dave-juicelabs closed 7 months ago

dave-juicelabs commented 7 months ago

A game engine is checking R32_FLOAT for DEPTH but finding it is not supported even though it is.

dave-juicelabs commented 7 months ago

After looking in to this further, I fear if this PR goes it that it will cause unintended issues considering the format for R32_FLOAT changes when it is COLOR vs DEPTH and the features supported do not match. Specifically, it appears Vulkans R32_FLOAT does not support the required features for D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_COMPARISON while Vulkans D32_FLOAT does. Knowing that the resulting crash without this PR is most certainly a bug in the game engine, I will work with them to get it resolved.