mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +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) {
|
||||
if (fmt == vk::Format::eR32Sfloat) {
|
||||
return vk::Format::eD32Sfloat;
|
||||
} else if (fmt == vk::Format::eR16Unorm) {
|
||||
} else if (fmt == vk::Format::eR16Unorm || fmt == vk::Format::eR8Unorm) {
|
||||
return vk::Format::eD16Unorm;
|
||||
}
|
||||
UNREACHABLE();
|
||||
|
|
Loading…
Add table
Reference in a new issue