Closed OrichalcumCosmonaut closed 4 days ago
Could you please test #10693 and make sure the subpixel ordering is correct? Thanks.
That does fix the validation errors for R11G11B10_UFLOAT
without causing any visual issues, not sure about the other formats though.
I think the swizzle for R10G10B10A2_UNORM
is equivalent to the identity swizzle anyway, all that would need testing is B5G6R5_UNORM
and B5G5R5A1_UNORM
.
Probably related: https://github.com/thatcosmonaut/SDL/issues/56
We've discussed this internally earlier, and I'm pretty sure that none of the formats require swizzling, except A8. The swizzling was a result of confusion about Vulkan's naming convention for packed formats. Vulkan's name order is most-significant-bit-first, while DXGI's and Metal's is least-significant-bit-first. Hence the Vulkan names looking "backwards". The actual layout should be the same.
Trying to use the recently added (https://github.com/libsdl-org/SDL/commit/fb7245fb93fa8fd332771e020cd11fdde6556cc6)
SDL_GPU_TEXTUREFORMAT_R11G11B10_UFLOAT
for a colour target or storage texture causes validation errors.As a colour target:
As a storage texture: