public class VkMappedMemoryRange
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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 memorysize 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::nonCoherentAtomSizesize 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.sType must be STRUCTURE_TYPE_MAPPED_MEMORY_RANGEpNext must be NULLmemory must be a valid VkDeviceMemory handleFlushMappedMemoryRanges, InvalidateMappedMemoryRanges
sType – the type of this structure.pNext – NULL 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.
struct VkMappedMemoryRange {
VkStructureType sType;
void const * pNext;
VkDeviceMemory memory;
VkDeviceSize offset;
VkDeviceSize size;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMappedMemoryRange.Buffer
An array of
VkMappedMemoryRange structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MEMORY
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkMappedMemoryRange(java.nio.ByteBuffer container)
Creates a
VkMappedMemoryRange instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMappedMemoryRange |
calloc()
Returns a new
VkMappedMemoryRange instance allocated with memCalloc. |
static VkMappedMemoryRange.Buffer |
calloc(int capacity)
Returns a new
VkMappedMemoryRange.Buffer instance allocated with memCalloc. |
static VkMappedMemoryRange |
callocStack()
Returns a new
VkMappedMemoryRange instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMappedMemoryRange.Buffer |
callocStack(int capacity)
Returns a new
VkMappedMemoryRange.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMappedMemoryRange.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMappedMemoryRange.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMappedMemoryRange |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMappedMemoryRange instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMappedMemoryRange |
create()
Returns a new
VkMappedMemoryRange instance allocated with BufferUtils. |
static VkMappedMemoryRange.Buffer |
create(int capacity)
Returns a new
VkMappedMemoryRange.Buffer instance allocated with BufferUtils. |
static VkMappedMemoryRange |
create(long address)
Returns a new
VkMappedMemoryRange instance for the specified memory address. |
static VkMappedMemoryRange.Buffer |
create(long address,
int capacity)
Create a
VkMappedMemoryRange.Buffer instance at the specified memory. |
static VkMappedMemoryRange |
createSafe(long address)
|
static VkMappedMemoryRange.Buffer |
createSafe(long address,
int capacity)
|
static VkMappedMemoryRange |
malloc()
Returns a new
VkMappedMemoryRange instance allocated with memAlloc. |
static VkMappedMemoryRange.Buffer |
malloc(int capacity)
Returns a new
VkMappedMemoryRange.Buffer instance allocated with memAlloc. |
static VkMappedMemoryRange |
mallocStack()
Returns a new
VkMappedMemoryRange instance allocated on the thread-local MemoryStack. |
static VkMappedMemoryRange.Buffer |
mallocStack(int capacity)
Returns a new
VkMappedMemoryRange.Buffer instance allocated on the thread-local MemoryStack. |
static VkMappedMemoryRange.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMappedMemoryRange.Buffer instance allocated on the specified MemoryStack. |
static VkMappedMemoryRange |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMappedMemoryRange instance allocated on the specified MemoryStack. |
long |
memory()
Returns the value of the
memory field. |
VkMappedMemoryRange |
memory(long value)
Sets the specified value to the
memory field. |
static long |
nmemory(long struct)
Unsafe version of
memory(). |
static void |
nmemory(long struct,
long value)
Unsafe version of
memory. |
static long |
noffset(long struct)
Unsafe version of
offset(). |
static void |
noffset(long struct,
long value)
Unsafe version of
offset. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static long |
nsize(long struct)
Unsafe version of
size(). |
static void |
nsize(long struct,
long value)
Unsafe version of
size. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
offset()
Returns the value of the
offset field. |
VkMappedMemoryRange |
offset(long value)
Sets the specified value to the
offset field. |
long |
pNext()
Returns the value of the
pNext field. |
VkMappedMemoryRange |
pNext(long value)
Sets the specified value to the
pNext field. |
VkMappedMemoryRange |
set(int sType,
long pNext,
long memory,
long offset,
long size)
Initializes this struct with the specified values.
|
VkMappedMemoryRange |
set(VkMappedMemoryRange src)
Copies the specified struct data to this struct.
|
long |
size()
Returns the value of the
size field. |
VkMappedMemoryRange |
size(long value)
Sets the specified value to the
size field. |
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkMappedMemoryRange |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int MEMORY
public static final int OFFSET
public static final int SIZE
public VkMappedMemoryRange(java.nio.ByteBuffer container)
VkMappedMemoryRange instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public long memory()
memory field.public long offset()
offset field.public long size()
size field.public VkMappedMemoryRange sType(int value)
sType field.public VkMappedMemoryRange pNext(long value)
pNext field.public VkMappedMemoryRange memory(long value)
memory field.public VkMappedMemoryRange offset(long value)
offset field.public VkMappedMemoryRange size(long value)
size field.public VkMappedMemoryRange set(int sType, long pNext, long memory, long offset, long size)
public VkMappedMemoryRange set(VkMappedMemoryRange src)
src - the source structpublic static VkMappedMemoryRange malloc()
VkMappedMemoryRange instance allocated with memAlloc. The instance must be explicitly freed.public static VkMappedMemoryRange calloc()
VkMappedMemoryRange instance allocated with memCalloc. The instance must be explicitly freed.public static VkMappedMemoryRange create()
VkMappedMemoryRange instance allocated with BufferUtils.public static VkMappedMemoryRange create(long address)
VkMappedMemoryRange instance for the specified memory address.@Nullable public static VkMappedMemoryRange createSafe(long address)
public static VkMappedMemoryRange.Buffer malloc(int capacity)
VkMappedMemoryRange.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMappedMemoryRange.Buffer calloc(int capacity)
VkMappedMemoryRange.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMappedMemoryRange.Buffer create(int capacity)
VkMappedMemoryRange.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkMappedMemoryRange.Buffer create(long address, int capacity)
VkMappedMemoryRange.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMappedMemoryRange.Buffer createSafe(long address, int capacity)
public static VkMappedMemoryRange mallocStack()
VkMappedMemoryRange instance allocated on the thread-local MemoryStack.public static VkMappedMemoryRange callocStack()
VkMappedMemoryRange instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkMappedMemoryRange mallocStack(org.lwjgl.system.MemoryStack stack)
VkMappedMemoryRange instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkMappedMemoryRange callocStack(org.lwjgl.system.MemoryStack stack)
VkMappedMemoryRange instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkMappedMemoryRange.Buffer mallocStack(int capacity)
VkMappedMemoryRange.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkMappedMemoryRange.Buffer callocStack(int capacity)
VkMappedMemoryRange.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkMappedMemoryRange.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMappedMemoryRange.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkMappedMemoryRange.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMappedMemoryRange.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long nmemory(long struct)
memory().public static long noffset(long struct)
offset().public static long nsize(long struct)
size().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nmemory(long struct,
long value)
memory.public static void noffset(long struct,
long value)
offset.public static void nsize(long struct,
long value)
size.Copyright LWJGL. All Rights Reserved. License terms.