Class VkMappedMemoryRange

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


    public class VkMappedMemoryRange
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Describes a memory range.

    Valid Usage
    • sType must be STRUCTURE_TYPE_MAPPED_MEMORY_RANGE
    • pNext must be NULL
    • memory must be a valid VkDeviceMemory handle
    • memory must currently be 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
    • offset must be a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize
    • If size is not equal to WHOLE_SIZE, size must be a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize

    Member documentation

    • sType – the type of this structure. Must be: STRUCTURE_TYPE_MAPPED_MEMORY_RANGE
    • pNext – reserved for use by extensions
    • 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;
        const void * pNext;
        VkDeviceMemory memory;
        VkDeviceSize offset;
        VkDeviceSize size;
    }