namespace Brutal.VulkanApi { /// /// VkImageToMemoryCopy - Structure specifying an image to host memory copy operation /// /// /// /// :refpage: VkImageToMemoryCopy /// :bufferrowlength: memoryRowLength /// :bufferimageheight: memoryImageHeight /// /// /// Each element of VkCopyImageToMemoryInfo::pRegions is a structure /// defined as: /// /// /// // Provided by VK_VERSION_1_4 /// typedef struct VkImageToMemoryCopy { /// VkStructureType sType; /// const void* pNext; /// void* pHostPointer; /// uint32_t memoryRowLength; /// uint32_t memoryImageHeight; /// VkImageSubresourceLayers imageSubresource; /// VkOffset3D imageOffset; /// VkExtent3D imageExtent; /// } VkImageToMemoryCopy; /// /// [StructLayout(LayoutKind.Explicit, Size = 72)] public unsafe partial struct VkImageToMemoryCopy() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImageToMemoryCopy; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// HostPointer is the host memory address which is the destination of the copy. /// [FieldOffset(16)] public void* HostPointer; /// /// MemoryRowLength and memoryImageHeight specify in texels a subregion of a larger two- or three-dimensional image in host memory, and control the addressing calculations. If either of these values is zero, that aspect of the host memory is considered to be tightly packed according to the imageExtent. /// [FieldOffset(24)] public int MemoryRowLength; /// /// MemoryImageHeight /// [FieldOffset(28)] public int MemoryImageHeight; /// /// ImageSubresource is a VkImageSubresourceLayers used to specify the specific image subresources of the image used for the source or destination image data. /// [FieldOffset(32)] public VkImageSubresourceLayers ImageSubresource; /// /// ImageOffset selects the initial x, y, z offsets in texels of the sub-region of the source image data. /// [FieldOffset(48)] public VkOffset3D ImageOffset; /// /// ImageExtent is the size in texels of the image to copy in width, height and depth. /// [FieldOffset(60)] public VkExtent3D ImageExtent; } }