namespace Brutal.VulkanApi { /// /// VkMappedMemoryRange - Structure specifying a mapped memory range /// /// /// /// The VkMappedMemoryRange structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkMappedMemoryRange { /// VkStructureType sType; /// const void* pNext; /// VkDeviceMemory memory; /// VkDeviceSize offset; /// VkDeviceSize size; /// } VkMappedMemoryRange; /// /// [StructLayout(LayoutKind.Explicit, Size = 40)] public unsafe partial struct VkMappedMemoryRange() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.MappedMemoryRange; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Memory is the memory object to which this range belongs. /// [FieldOffset(16)] public VkDeviceMemory Memory; /// /// Offset is the zero-based byte offset from the beginning of the memory object. /// [FieldOffset(24)] public ByteSize64 Offset; /// /// Size is either the size of range, or VK_WHOLE_SIZE to affect the range from offset to the end of the current mapping of the allocation. /// [FieldOffset(32)] public ByteSize64 Size; } }