mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 06:38:46 +00:00
promote eR8Unorm to depth
This commit is contained in:
parent
7e533ccf50
commit
0e46fbfe8f
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ void EmitQuadToTriangleListIndices(u8* out_indices, u32 num_vertices);
|
||||||
static inline vk::Format PromoteFormatToDepth(vk::Format fmt) {
|
static inline vk::Format PromoteFormatToDepth(vk::Format fmt) {
|
||||||
if (fmt == vk::Format::eR32Sfloat) {
|
if (fmt == vk::Format::eR32Sfloat) {
|
||||||
return vk::Format::eD32Sfloat;
|
return vk::Format::eD32Sfloat;
|
||||||
} else if (fmt == vk::Format::eR16Unorm) {
|
} else if (fmt == vk::Format::eR16Unorm || fmt == vk::Format::eR8Unorm) {
|
||||||
return vk::Format::eD16Unorm;
|
return vk::Format::eD16Unorm;
|
||||||
}
|
}
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue