Cleanup: Fix compilation warnings

This commit is contained in:
Jeroen Bakker
2025-10-06 14:29:47 +02:00
parent 522a2a28f7
commit f2c04f08c4
2 changed files with 5 additions and 8 deletions

View File

@@ -130,8 +130,7 @@ void VKDescriptorSetUpdator::bind_texture_resource(const VKDevice &device,
access_info.images.append({texture->vk_image_handle(),
resource_binding.access_mask,
to_vk_image_aspect_flag_bits(texture->device_format_get()),
0,
VK_REMAINING_ARRAY_LAYERS});
{}});
}
break;
}
@@ -163,8 +162,7 @@ void VKDescriptorSetUpdator::bind_input_attachment_resource(
access_info.images.append({texture->vk_image_handle(),
resource_binding.access_mask,
to_vk_image_aspect_flag_bits(texture->device_format_get()),
0,
VK_REMAINING_ARRAY_LAYERS});
{}});
}
}
else {
@@ -191,8 +189,7 @@ void VKDescriptorSetUpdator::bind_input_attachment_resource(
access_info.images.append({vk_image,
resource_binding.access_mask,
to_vk_image_aspect_flag_bits(texture->device_format_get()),
0,
VK_REMAINING_ARRAY_LAYERS});
{}});
}
}
}

View File

@@ -646,7 +646,7 @@ void VKFrameBuffer::rendering_ensure_dynamic_rendering(VKContext &context,
{color_texture.vk_image_handle(),
VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
VK_IMAGE_ASPECT_COLOR_BIT,
layer_base});
{0, VK_REMAINING_MIP_LEVELS, layer_base, VK_REMAINING_ARRAY_LAYERS}});
color_attachment_formats_.append(
(!extensions.dynamic_rendering_unused_attachments && vk_image_view == VK_NULL_HANDLE) ?
VK_FORMAT_UNDEFINED :
@@ -725,7 +725,7 @@ void VKFrameBuffer::rendering_ensure_dynamic_rendering(VKContext &context,
static_cast<VkImageAspectFlags>(VK_IMAGE_ASPECT_DEPTH_BIT |
VK_IMAGE_ASPECT_STENCIL_BIT) :
static_cast<VkImageAspectFlags>(VK_IMAGE_ASPECT_DEPTH_BIT),
0});
{}});
break;
}