a/vk: Remove unused vk_get_access_flags function

This commit is contained in:
Jakob Bornecrantz 2022-08-25 14:14:07 +01:00
parent 90f3adcdd1
commit e79b23275b
2 changed files with 0 additions and 20 deletions

View file

@ -949,23 +949,6 @@ vk_create_view_swizzle(struct vk_bundle *vk,
return VK_SUCCESS;
}
VkAccessFlags
vk_get_access_flags(VkImageLayout layout)
{
switch (layout) {
case VK_IMAGE_LAYOUT_UNDEFINED: return 0;
case VK_IMAGE_LAYOUT_GENERAL: return VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT;
case VK_IMAGE_LAYOUT_PREINITIALIZED: return VK_ACCESS_HOST_WRITE_BIT;
case VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL: return VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
case VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL: return VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT;
case VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL: return VK_ACCESS_TRANSFER_READ_BIT;
case VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL: return VK_ACCESS_TRANSFER_WRITE_BIT;
case VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL: return VK_ACCESS_SHADER_READ_BIT;
default: U_LOG_E("Unhandled access mask case for layout %d.", layout);
}
return 0;
}
/*
*

View file

@ -840,9 +840,6 @@ vk_create_view_swizzle(struct vk_bundle *vk,
VkComponentMapping components,
VkImageView *out_view);
VkAccessFlags
vk_get_access_flags(VkImageLayout layout);
/*
*