memory must be currently host mappedsize is not equal to WHOLE_SIZE, offset and size must specify a range contained within the currently mapped range of memorysize is equal to WHOLE_SIZE, offset must be within the currently mapped range of memoryoffset must be a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSizesize 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 objectsize is not equal to WHOLE_SIZE, size must either be a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize, or offset plus size must equal the size of memorysType must be STRUCTURE_TYPE_MAPPED_MEMORY_RANGEpNext must be NULLmemory must be a valid VkDeviceMemory handleFlushMappedMemoryRanges, InvalidateMappedMemoryRanges
struct VkMappedMemoryRange {
VkStructureType sType;
void const * pNext;
VkDeviceMemory memory;
VkDeviceSize offset;
VkDeviceSize size;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkMappedMemoryRange.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | MEMORY
The struct member offsets. |
| public static final int | OFFSET
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkMappedMemoryRange(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkMappedMemoryRange | |
| public static VkMappedMemoryRange. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkMappedMemoryRange | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkMappedMemoryRange. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkMappedMemoryRange | |
| public static VkMappedMemoryRange | |
| public static VkMappedMemoryRange. | |
| public static VkMappedMemoryRange. | |
| protected VkMappedMemoryRange | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkMappedMemoryRange | |
| public static VkMappedMemoryRange | |
| public static VkMappedMemoryRange. | create(int
the buffer capacity capacity)Returns a new |
| public static VkMappedMemoryRange. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkMappedMemoryRange | |
| public static VkMappedMemoryRange. | |
| public static VkMappedMemoryRange | |
| public static VkMappedMemoryRange. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkMappedMemoryRange | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkMappedMemoryRange. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkMappedMemoryRange | |
| public static VkMappedMemoryRange | |
| public static VkMappedMemoryRange. | |
| public static VkMappedMemoryRange. | |
| public long | |
| public VkMappedMemoryRange | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public VkMappedMemoryRange | |
| public long | |
| public VkMappedMemoryRange | |
| public VkMappedMemoryRange | set(int sType, long pNext, long memory, long offset, long size)
Initializes this struct with the specified values. |
| public VkMappedMemoryRange | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public long | size()
either the size of range, or |
| public VkMappedMemoryRange | |
| public int | |
| public int | |
| public VkMappedMemoryRange | |
| public VkMappedMemoryRange |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| MEMORY | back to summary |
|---|---|
| public static final int MEMORY The struct member offsets. | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SIZE | back to summary |
|---|---|
| public static final int SIZE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| VkMappedMemoryRange | back to summary |
|---|---|
| protected VkMappedMemoryRange(long address, ByteBuffer container) | |
| VkMappedMemoryRange | back to summary |
|---|---|
| public VkMappedMemoryRange(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkMappedMemoryRange calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkMappedMemoryRange. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkMappedMemoryRange calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkMappedMemoryRange. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkMappedMemoryRange callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkMappedMemoryRange callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkMappedMemoryRange. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkMappedMemoryRange. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkMappedMemoryRange create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkMappedMemoryRange create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkMappedMemoryRange create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkMappedMemoryRange. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkMappedMemoryRange. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkMappedMemoryRange createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkMappedMemoryRange. Like
| |
| malloc | back to summary |
|---|---|
| public static VkMappedMemoryRange malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkMappedMemoryRange. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkMappedMemoryRange malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkMappedMemoryRange. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkMappedMemoryRange mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkMappedMemoryRange mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkMappedMemoryRange. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkMappedMemoryRange. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| memory | back to summary |
|---|---|
| public long memory() the memory object to which this range belongs.
| |
| memory | back to summary |
|---|---|
| public VkMappedMemoryRange memory(long value) Sets the specified value to the | |
| nmemory | back to summary |
|---|---|
| public static long nmemory(long struct) Unsafe version of | |
| nmemory | back to summary |
|---|---|
| public static void nmemory(long struct, long value) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static long noffset(long struct) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static void noffset(long struct, long value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static long nsize(long struct) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static void nsize(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| offset | back to summary |
|---|---|
| public long offset() the zero-based byte offset from the beginning of the memory object.
| |
| offset | back to summary |
|---|---|
| public VkMappedMemoryRange offset(long value) Sets the specified value to the | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkMappedMemoryRange pNext(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkMappedMemoryRange set(int sType, long pNext, long memory, long offset, long size) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkMappedMemoryRange set(VkMappedMemoryRange src) Copies the specified struct data to this struct.
| |
| size | back to summary |
|---|---|
| public long size() either the size of range, or
| |
| size | back to summary |
|---|---|
| public VkMappedMemoryRange size(long value) Sets the specified value to the | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkMappedMemoryRange sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkMappedMemoryRange sType$Default() Sets the | |
VkMappedMemoryRange structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkMappedMemoryRange |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected VkMappedMemoryRange | |
| public long | |
| public VkMappedMemoryRange. | |
| public long | |
| public VkMappedMemoryRange. | |
| public long | |
| public VkMappedMemoryRange. | |
| protected VkMappedMemoryRange. | |
| public long | |
| public VkMappedMemoryRange. | |
| public int | |
| public VkMappedMemoryRange. | |
| public VkMappedMemoryRange. | sType$Default()
Sets the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkMappedMemoryRange ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected VkMappedMemoryRange getElementFactory() Implements abstract org.
| |
| memory | back to summary |
|---|---|
public long memory()
| |
| memory | back to summary |
|---|---|
| public VkMappedMemoryRange. Sets the specified value to the | |
| offset | back to summary |
|---|---|
public long offset()
| |
| offset | back to summary |
|---|---|
| public VkMappedMemoryRange. Sets the specified value to the | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkMappedMemoryRange. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkMappedMemoryRange. Implements abstract org.
| |
| size | back to summary |
|---|---|
public long size()
| |
| size | back to summary |
|---|---|
| public VkMappedMemoryRange. Sets the specified value to the | |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkMappedMemoryRange. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkMappedMemoryRange. Sets the | |