Fix GraphicsContext code formatting for auto formatter

This commit is contained in:
PixelyIon 2022-04-14 15:23:08 +05:30
parent 624df92616
commit 41a6afed01

View File

@ -77,22 +77,24 @@ namespace skyline::gpu::interconnect {
constexpr vk::ImageLayout NullImageInitialLayout{vk::ImageLayout::eUndefined}; constexpr vk::ImageLayout NullImageInitialLayout{vk::ImageLayout::eUndefined};
constexpr vk::ImageTiling NullImageTiling{vk::ImageTiling::eOptimal}; constexpr vk::ImageTiling NullImageTiling{vk::ImageTiling::eOptimal};
auto vkImage{gpu.memory.AllocateImage({ auto vkImage{gpu.memory.AllocateImage(
.imageType = vk::ImageType::e2D, {
.format = NullImageFormat->vkFormat, .imageType = vk::ImageType::e2D,
.extent = NullImageDimensions, .format = NullImageFormat->vkFormat,
.mipLevels = 1, .extent = NullImageDimensions,
.arrayLayers = 1, .mipLevels = 1,
.samples = vk::SampleCountFlagBits::e1, .arrayLayers = 1,
.tiling = NullImageTiling, .samples = vk::SampleCountFlagBits::e1,
.usage = vk::ImageUsageFlagBits::eColorAttachment | vk::ImageUsageFlagBits::eSampled, .tiling = NullImageTiling,
.sharingMode = vk::SharingMode::eExclusive, .usage = vk::ImageUsageFlagBits::eColorAttachment | vk::ImageUsageFlagBits::eSampled,
.queueFamilyIndexCount = 1, .sharingMode = vk::SharingMode::eExclusive,
.pQueueFamilyIndices = &gpu.vkQueueFamilyIndex, .queueFamilyIndexCount = 1,
.initialLayout = NullImageInitialLayout .pQueueFamilyIndices = &gpu.vkQueueFamilyIndex,
})}; .initialLayout = NullImageInitialLayout
}
)};
auto nullTexture{std::make_shared<Texture>(gpu, std::move(vkImage), NullImageDimensions, NullImageFormat, NullImageInitialLayout, NullImageTiling)}; auto nullTexture{std::make_shared<Texture>(gpu, std::move(vkImage), NullImageDimensions, NullImageFormat, NullImageInitialLayout, NullImageTiling)};
nullTexture->TransitionLayout(vk::ImageLayout::eGeneral); nullTexture->TransitionLayout(vk::ImageLayout::eGeneral);
nullTextureView = nullTexture->GetView(vk::ImageViewType::e2D, vk::ImageSubresourceRange{ nullTextureView = nullTexture->GetView(vk::ImageViewType::e2D, vk::ImageSubresourceRange{
.aspectMask = vk::ImageAspectFlagBits::eColor, .aspectMask = vk::ImageAspectFlagBits::eColor,