namespace Brutal.VulkanApi { /// /// VkSubresourceHostMemcpySize - Memory size needed to copy to or from an image on the host with VK_HOST_IMAGE_COPY_MEMCPY_BIT /// /// /// /// To query the memory size needed to copy to or from an image using /// vkCopyMemoryToImage or vkCopyImageToMemory when the /// VK_HOST_IMAGE_COPY_MEMCPY_BIT flag is specified, add a /// VkSubresourceHostMemcpySize structure to the pNext chain of the /// VkSubresourceLayout2 structure in a call to /// vkGetImageSubresourceLayout2. /// /// /// The VkSubresourceHostMemcpySize structure is defined as: /// /// /// // Provided by VK_VERSION_1_4 /// typedef struct VkSubresourceHostMemcpySize { /// VkStructureType sType; /// void* pNext; /// VkDeviceSize size; /// } VkSubresourceHostMemcpySize; /// /// [StructLayout(LayoutKind.Explicit, Size = 24)] public unsafe partial struct VkSubresourceHostMemcpySize() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.SubresourceHostMemcpySize; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Size is the size in bytes of the image subresource. /// [FieldOffset(16)] public ByteSize64 Size; } }