mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +00:00
rewrite as switch
This commit is contained in:
parent
9c06852c89
commit
727e4273b8
1 changed files with 6 additions and 4 deletions
|
@ -57,14 +57,16 @@ vk::SampleCountFlagBits NumSamples(u32 num_samples, vk::SampleCountFlags support
|
|||
void EmitQuadToTriangleListIndices(u8* out_indices, u32 num_vertices);
|
||||
|
||||
static inline vk::Format PromoteFormatToDepth(vk::Format fmt) {
|
||||
if (fmt == vk::Format::eR32Sfloat) {
|
||||
switch (fmt) {
|
||||
case vk::Format::eR32Sfloat:
|
||||
return vk::Format::eD32Sfloat;
|
||||
} else if (fmt == vk::Format::eR16Unorm) {
|
||||
case vk::Format::eR16Unorm:
|
||||
return vk::Format::eD16Unorm;
|
||||
} else if (fmt == vk::Format::eR8G8B8A8Unorm) {
|
||||
case vk::Format::eR8G8B8A8Unorm:
|
||||
return fmt;
|
||||
default:
|
||||
UNREACHABLE();
|
||||
}
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
} // namespace Vulkan::LiverpoolToVK
|
||||
|
|
Loading…
Add table
Reference in a new issue