Function vk_mem_erupt::ffi::vmaBindImageMemory2[][src]

pub unsafe extern "C" fn vmaBindImageMemory2(
    allocator: VmaAllocator,
    allocation: VmaAllocation,
    allocationLocalOffset: VkDeviceSize,
    image: VkImage,
    pNext: *const c_void
) -> VkResult
Expand description

\brief Binds image to allocation with additional parameters.

@param allocationLocalOffset Additional offset to be added while binding, relative to the beginning of the allocation. Normally it should be 0. @param pNext A chain of structures to be attached to VkBindImageMemoryInfoKHR structure used internally. Normally it should be null.

This function is similar to vmaBindImageMemory(), but it provides additional parameters.

If pNext is not null, #VmaAllocator object must have been created with #VMA_ALLOCATOR_CREATE_KHR_BIND_MEMORY2_BIT flag or with VmaAllocatorCreateInfo::vulkanApiVersion >= VK_API_VERSION_1_1. Otherwise the call fails.