Check if this image format can copy from host to gpu directly.
- Returns
- Returns true if can do that.
Instance a VkFormatProperties3.
Properties3 need to be chained into Properties2.
Get format properties for the select image format.
Instance a VkFormatProperties3.
Properties3 need to be chained into Properties2.
Get format properties for the select image format.
Definition at line 999 of file VulkanImage.cpp.
1000 {
1002
1006 VkFormatProperties3 formatProperties3{};
1007 formatProperties3.sType = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3_KHR;
1008
1012 VkFormatProperties2 formatProperties2{};
1013 formatProperties2.sType = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2;
1014 formatProperties2.pNext = &formatProperties3;
1015
1020
1021 return formatProperties3.optimalTilingFeatures & VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXT &&
VKImageHostOperation;
1022 }
#define SPICES_PROFILE_ZONE
#define VKImageHostOperation
Disable Host Image copy for host memory heap is too smaller.
VkFormat m_Format
The image format.
VulkanState & m_VulkanState
The global VulkanState Referenced from VulkanRenderBackend.
VkPhysicalDevice m_PhysicalDevice