mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 09:27:33 +01:00
Merge pull request #4419 from lioncash/initializer
vulkan: Resolve -Wmissing-field-initializer warnings
This commit is contained in:
commit
6b35317ff3
@ -156,6 +156,7 @@ void VKSwapchain::CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities,
|
|||||||
.minImageCount = requested_image_count,
|
.minImageCount = requested_image_count,
|
||||||
.imageFormat = surface_format.format,
|
.imageFormat = surface_format.format,
|
||||||
.imageColorSpace = surface_format.colorSpace,
|
.imageColorSpace = surface_format.colorSpace,
|
||||||
|
.imageExtent = {},
|
||||||
.imageArrayLayers = 1,
|
.imageArrayLayers = 1,
|
||||||
.imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT,
|
.imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT,
|
||||||
.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE,
|
.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE,
|
||||||
@ -204,6 +205,7 @@ void VKSwapchain::CreateImageViews() {
|
|||||||
.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
|
||||||
.pNext = nullptr,
|
.pNext = nullptr,
|
||||||
.flags = 0,
|
.flags = 0,
|
||||||
|
.image = {},
|
||||||
.viewType = VK_IMAGE_VIEW_TYPE_2D,
|
.viewType = VK_IMAGE_VIEW_TYPE_2D,
|
||||||
.format = image_format,
|
.format = image_format,
|
||||||
.components =
|
.components =
|
||||||
|
@ -138,6 +138,7 @@ VkImageCreateInfo GenerateImageCreateInfo(const VKDevice& device, const SurfaceP
|
|||||||
.flags = 0,
|
.flags = 0,
|
||||||
.imageType = SurfaceTargetToImage(params.target),
|
.imageType = SurfaceTargetToImage(params.target),
|
||||||
.format = format,
|
.format = format,
|
||||||
|
.extent = {},
|
||||||
.mipLevels = params.num_levels,
|
.mipLevels = params.num_levels,
|
||||||
.arrayLayers = static_cast<u32>(params.GetNumLayers()),
|
.arrayLayers = static_cast<u32>(params.GetNumLayers()),
|
||||||
.samples = VK_SAMPLE_COUNT_1_BIT,
|
.samples = VK_SAMPLE_COUNT_1_BIT,
|
||||||
@ -458,6 +459,7 @@ VkImageView CachedSurfaceView::GetAttachment() {
|
|||||||
.pNext = nullptr,
|
.pNext = nullptr,
|
||||||
.flags = 0,
|
.flags = 0,
|
||||||
.image = surface.GetImageHandle(),
|
.image = surface.GetImageHandle(),
|
||||||
|
.viewType = VK_IMAGE_VIEW_TYPE_1D,
|
||||||
.format = surface.GetImage().GetFormat(),
|
.format = surface.GetImage().GetFormat(),
|
||||||
.components =
|
.components =
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user