mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 10:36:06 +00:00
format
This commit is contained in:
parent
a88850fec6
commit
1793fd4df0
|
@ -153,7 +153,7 @@ Image::Image(const Vulkan::Instance& instance_, Vulkan::Scheduler& scheduler_,
|
||||||
vk::ImageCreateFlagBits::eExtendedUsage};
|
vk::ImageCreateFlagBits::eExtendedUsage};
|
||||||
const bool can_be_cube =
|
const bool can_be_cube =
|
||||||
(info.type == vk::ImageType::e2D) &&
|
(info.type == vk::ImageType::e2D) &&
|
||||||
(info.props.is_pow2 ? (info.resources.layers % 8) : (info.resources.layers % 6) == 0) &&
|
((info.props.is_pow2 ? (info.resources.layers % 8) : (info.resources.layers % 6)) == 0) &&
|
||||||
(info.size.width == info.size.height);
|
(info.size.width == info.size.height);
|
||||||
if (info.props.is_cube || can_be_cube) {
|
if (info.props.is_cube || can_be_cube) {
|
||||||
flags |= vk::ImageCreateFlagBits::eCubeCompatible;
|
flags |= vk::ImageCreateFlagBits::eCubeCompatible;
|
||||||
|
|
Loading…
Reference in a new issue