From 6f6eda6413456be86a932735ead8ef9754bafcc1 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Wed, 4 Aug 2021 02:29:16 +0300 Subject: [PATCH] vk/device: Formatting fixes only (EOL) --- rpcs3/Emu/RSX/VK/vkutils/memory.cpp | 52 ++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/vkutils/memory.cpp b/rpcs3/Emu/RSX/VK/vkutils/memory.cpp index a9bd9a8b5b..fff5b98f6c 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/memory.cpp +++ b/rpcs3/Emu/RSX/VK/vkutils/memory.cpp @@ -47,32 +47,32 @@ namespace vk memory_type_info::operator bool() const { return !type_ids.empty(); - } - - bool memory_type_info::operator == (const memory_type_info& other) const - { - if (type_ids.size() != other.type_ids.size()) - { - return false; - } - - switch (type_ids.size()) - { - case 1: - return type_ids[0] == other.type_ids[0]; - case 2: - return ((type_ids[0] == other.type_ids[0] && type_ids[1] == other.type_ids[1]) || - (type_ids[0] == other.type_ids[1] && type_ids[1] == other.type_ids[0])); - default: - for (const auto& id : other.type_ids) - { - if (std::find(type_ids.begin(), type_ids.end(), id) == type_ids.end()) - { - return false; - } - } - return true; - } + } + + bool memory_type_info::operator == (const memory_type_info& other) const + { + if (type_ids.size() != other.type_ids.size()) + { + return false; + } + + switch (type_ids.size()) + { + case 1: + return type_ids[0] == other.type_ids[0]; + case 2: + return ((type_ids[0] == other.type_ids[0] && type_ids[1] == other.type_ids[1]) || + (type_ids[0] == other.type_ids[1] && type_ids[1] == other.type_ids[0])); + default: + for (const auto& id : other.type_ids) + { + if (std::find(type_ids.begin(), type_ids.end(), id) == type_ids.end()) + { + return false; + } + } + return true; + } } memory_type_info memory_type_info::get(const render_device& dev, u32 access_flags, u32 type_mask) const