mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
vk/device: Formatting fixes only (EOL)
This commit is contained in:
parent
86d2316089
commit
6f6eda6413
1 changed files with 26 additions and 26 deletions
|
@ -47,32 +47,32 @@ namespace vk
|
||||||
memory_type_info::operator bool() const
|
memory_type_info::operator bool() const
|
||||||
{
|
{
|
||||||
return !type_ids.empty();
|
return !type_ids.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool memory_type_info::operator == (const memory_type_info& other) const
|
bool memory_type_info::operator == (const memory_type_info& other) const
|
||||||
{
|
{
|
||||||
if (type_ids.size() != other.type_ids.size())
|
if (type_ids.size() != other.type_ids.size())
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (type_ids.size())
|
switch (type_ids.size())
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
return type_ids[0] == other.type_ids[0];
|
return type_ids[0] == other.type_ids[0];
|
||||||
case 2:
|
case 2:
|
||||||
return ((type_ids[0] == other.type_ids[0] && type_ids[1] == other.type_ids[1]) ||
|
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]));
|
(type_ids[0] == other.type_ids[1] && type_ids[1] == other.type_ids[0]));
|
||||||
default:
|
default:
|
||||||
for (const auto& id : other.type_ids)
|
for (const auto& id : other.type_ids)
|
||||||
{
|
{
|
||||||
if (std::find(type_ids.begin(), type_ids.end(), id) == type_ids.end())
|
if (std::find(type_ids.begin(), type_ids.end(), id) == type_ids.end())
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
memory_type_info memory_type_info::get(const render_device& dev, u32 access_flags, u32 type_mask) const
|
memory_type_info memory_type_info::get(const render_device& dev, u32 access_flags, u32 type_mask) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue