From 41a6afed019a5d7dad7de06a0243c0c6432db849 Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Thu, 14 Apr 2022 15:23:08 +0530 Subject: [PATCH] Fix `GraphicsContext` code formatting for auto formatter --- .../gpu/interconnect/graphics_context.h | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h index dcf0f70b..d12bcccc 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h +++ b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h @@ -77,22 +77,24 @@ namespace skyline::gpu::interconnect { constexpr vk::ImageLayout NullImageInitialLayout{vk::ImageLayout::eUndefined}; constexpr vk::ImageTiling NullImageTiling{vk::ImageTiling::eOptimal}; - auto vkImage{gpu.memory.AllocateImage({ - .imageType = vk::ImageType::e2D, - .format = NullImageFormat->vkFormat, - .extent = NullImageDimensions, - .mipLevels = 1, - .arrayLayers = 1, - .samples = vk::SampleCountFlagBits::e1, - .tiling = NullImageTiling, - .usage = vk::ImageUsageFlagBits::eColorAttachment | vk::ImageUsageFlagBits::eSampled, - .sharingMode = vk::SharingMode::eExclusive, - .queueFamilyIndexCount = 1, - .pQueueFamilyIndices = &gpu.vkQueueFamilyIndex, - .initialLayout = NullImageInitialLayout - })}; + auto vkImage{gpu.memory.AllocateImage( + { + .imageType = vk::ImageType::e2D, + .format = NullImageFormat->vkFormat, + .extent = NullImageDimensions, + .mipLevels = 1, + .arrayLayers = 1, + .samples = vk::SampleCountFlagBits::e1, + .tiling = NullImageTiling, + .usage = vk::ImageUsageFlagBits::eColorAttachment | vk::ImageUsageFlagBits::eSampled, + .sharingMode = vk::SharingMode::eExclusive, + .queueFamilyIndexCount = 1, + .pQueueFamilyIndices = &gpu.vkQueueFamilyIndex, + .initialLayout = NullImageInitialLayout + } + )}; - auto nullTexture{std::make_shared(gpu, std::move(vkImage), NullImageDimensions, NullImageFormat, NullImageInitialLayout, NullImageTiling)}; + auto nullTexture{std::make_shared(gpu, std::move(vkImage), NullImageDimensions, NullImageFormat, NullImageInitialLayout, NullImageTiling)}; nullTexture->TransitionLayout(vk::ImageLayout::eGeneral); nullTextureView = nullTexture->GetView(vk::ImageViewType::e2D, vk::ImageSubresourceRange{ .aspectMask = vk::ImageAspectFlagBits::eColor,