mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 05:35:07 +01:00
Add D24X8Unorm depth RT format support
This commit is contained in:
parent
d3af629b83
commit
71c37dd6c4
@ -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:
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user