Class VkMappedMemoryRange

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkMappedMemoryRange extends Struct<VkMappedMemoryRange> implements NativeResource
Structure specifying a mapped memory range.
Valid Usage
  • memory must be currently host 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 equal to WHOLE_SIZE, the end of the current mapping of memory must either be a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize bytes from the beginning of the memory object, or be equal to the end of the memory object
  • 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

Layout


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