srcQueueFamilyIndex
srcQueueFamilyIndex is a field found in several Vulkan structure types that describe memory or layout transitions, most notably VkImageMemoryBarrier and VkBufferMemoryBarrier. It indicates the source queue family from which ownership of a resource is being transferred. When a queue family owns a resource, its operations are performed by that queue. If the resource must be used by another queue family, a ownership transfer is required; the srcQueueFamilyIndex value specifies which family is handing off the resource.
In practice, srcQueueFamilyIndex is used in conjunction with dstQueueFamilyIndex. For a barrier that signals a transition
The value should be derived from the Vulkan instance's vkGetPhysicalDeviceQueueFamilyProperties call, which returns the number of
Typical usage is seen in code that copies data from a compute queue to a graphics queue: