Class VkMappedMemoryRange

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkMappedMemoryRange
    extends Struct
    implements NativeResource
    Structure specifying a mapped memory range.
    Valid Usage
    • memory must be currently mapped
    • If size is not equal to WHOLE_SIZE, offset and size must specify a range contained within the currently mapped range of memory
    • If size is equal to WHOLE_SIZE, offset must be within the currently mapped range of memory
    • If size is equal to WHOLE_SIZE, the end of the current mapping of memory must be a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize bytes from the beginning of the memory object.
    • offset must be a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize
    • If size is not equal to WHOLE_SIZE, size must either be a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize, or offset plus size must equal the size of memory.
    Valid Usage (Implicit)
    See Also

    FlushMappedMemoryRanges, InvalidateMappedMemoryRanges

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • memory – the memory object to which this range belongs.
    • offset – the zero-based byte offset from the beginning of the memory object.
    • size – either the size of range, or WHOLE_SIZE to affect the range from offset to the end of the current mapping of the allocation.

    Layout

    
     struct VkMappedMemoryRange {
         VkStructureType sType;
         void const * pNext;
         VkDeviceMemory memory;
         VkDeviceSize offset;
         VkDeviceSize size;
     }