Add D24X8Unorm depth RT format support

This commit is contained in:
Billy Laws 2022-06-04 17:40:49 +01:00
parent d3af629b83
commit 71c37dd6c4
2 changed files with 7 additions and 0 deletions

View File

@ -278,6 +278,8 @@ namespace skyline::gpu::interconnect {
return format::D32Float; return format::D32Float;
case MaxwellDepthRtFormat::S8D24Unorm: case MaxwellDepthRtFormat::S8D24Unorm:
return format::S8UintD24Unorm; return format::S8UintD24Unorm;
case MaxwellDepthRtFormat::D24X8Unorm:
return format::D24UnormX8Uint;
case MaxwellDepthRtFormat::D24S8Unorm: case MaxwellDepthRtFormat::D24S8Unorm:
return format::D24UnormS8Uint; return format::D24UnormS8Uint;
case MaxwellDepthRtFormat::D32S8X24Float: case MaxwellDepthRtFormat::D32S8X24Float:

View File

@ -154,6 +154,11 @@ namespace skyline::gpu::format {
FORMAT(D32Float, 32, eD32Sfloat, vka::eDepth, .swizzleMapping = { FORMAT(D32Float, 32, eD32Sfloat, vka::eDepth, .swizzleMapping = {
.g = vk::ComponentSwizzle::eR .g = vk::ComponentSwizzle::eR
}); });
FORMAT(D24UnormX8Uint, 32, eX8D24UnormPack32, .vkAspect = {
vka::eDepth
}, .swizzleMapping = {
.g = vk::ComponentSwizzle::eR
});
FORMAT(D24UnormS8Uint, 32, eD24UnormS8Uint, .vkAspect = { FORMAT(D24UnormS8Uint, 32, eD24UnormS8Uint, .vkAspect = {
vka::eStencil | vka::eDepth vka::eStencil | vka::eDepth
}, .swizzleMapping = { }, .swizzleMapping = {