Package org.lwjgl.vulkan
Class VkMemoryMapInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkMemoryMapInfo>
org.lwjgl.vulkan.VkMemoryMapInfo
org.lwjgl.vulkan.VkMemoryMapInfoKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkMemoryMapInfoKHR {
VkStructureType sType;
void const * pNext;
VkMemoryMapFlags flags;
VkDeviceMemory memory;
VkDeviceSize offset;
VkDeviceSize size;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from class org.lwjgl.vulkan.VkMemoryMapInfo
ALIGNOF, FLAGS, MEMORY, OFFSET, PNEXT, SIZE, SIZEOF, STYPEFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkMemoryMapInfoKHR(ByteBuffer container) Creates aVkMemoryMapInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMemoryMapInfoKHRcalloc()Returns a newVkMemoryMapInfoKHRinstance allocated withmemCalloc.static VkMemoryMapInfoKHR.Buffercalloc(int capacity) Returns a newVkMemoryMapInfoKHR.Bufferinstance allocated withmemCalloc.static VkMemoryMapInfoKHR.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkMemoryMapInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryMapInfoKHRcalloc(MemoryStack stack) Returns a newVkMemoryMapInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryMapInfoKHRcreate()Returns a newVkMemoryMapInfoKHRinstance allocated withBufferUtils.static VkMemoryMapInfoKHR.Buffercreate(int capacity) Returns a newVkMemoryMapInfoKHR.Bufferinstance allocated withBufferUtils.static VkMemoryMapInfoKHRcreate(long address) Returns a newVkMemoryMapInfoKHRinstance for the specified memory address.static VkMemoryMapInfoKHR.Buffercreate(long address, int capacity) Create aVkMemoryMapInfoKHR.Bufferinstance at the specified memory.static @Nullable VkMemoryMapInfoKHRcreateSafe(long address) static @Nullable VkMemoryMapInfoKHR.BuffercreateSafe(long address, int capacity) flags(int value) Sets the specified value to theflagsfield.static VkMemoryMapInfoKHRmalloc()Returns a newVkMemoryMapInfoKHRinstance allocated withmemAlloc.static VkMemoryMapInfoKHR.Buffermalloc(int capacity) Returns a newVkMemoryMapInfoKHR.Bufferinstance allocated withmemAlloc.static VkMemoryMapInfoKHR.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkMemoryMapInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkMemoryMapInfoKHRmalloc(MemoryStack stack) Returns a newVkMemoryMapInfoKHRinstance allocated on the specifiedMemoryStack.memory(long value) Sets the specified value to thememoryfield.offset(long value) Sets the specified value to theoffsetfield.pNext(long value) Sets the specified value to thepNextfield.set(int sType, long pNext, int flags, long memory, long offset, long size) Initializes this struct with the specified values.set(VkMemoryMapInfoKHR src) Copies the specified struct data to this struct.size(long value) Sets the specified value to thesizefield.sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_MEMORY_MAP_INFOvalue to thesTypefield.Methods inherited from class org.lwjgl.vulkan.VkMemoryMapInfo
flags, memory, nflags, nflags, nmemory, nmemory, noffset, noffset, npNext, npNext, nsize, nsize, nsType, nsType, offset, pNext, pNext, set, size, sizeof, sTypeMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkMemoryMapInfoKHR
Creates aVkMemoryMapInfoKHRinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Details
-
sType
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkMemoryMapInfo
-
sType$Default
Sets theSTRUCTURE_TYPE_MEMORY_MAP_INFOvalue to thesTypefield.- Overrides:
sType$Defaultin classVkMemoryMapInfo
-
pNext
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkMemoryMapInfo
-
flags
Sets the specified value to theflagsfield.- Overrides:
flagsin classVkMemoryMapInfo
-
memory
Sets the specified value to thememoryfield.- Overrides:
memoryin classVkMemoryMapInfo
-
offset
Sets the specified value to theoffsetfield.- Overrides:
offsetin classVkMemoryMapInfo
-
size
Sets the specified value to thesizefield.- Overrides:
sizein classVkMemoryMapInfo
-
set
public VkMemoryMapInfoKHR set(int sType, long pNext, int flags, long memory, long offset, long size) Initializes this struct with the specified values.- Overrides:
setin classVkMemoryMapInfo
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkMemoryMapInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkMemoryMapInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkMemoryMapInfoKHRinstance allocated withBufferUtils. -
create
Returns a newVkMemoryMapInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMemoryMapInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkMemoryMapInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkMemoryMapInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkMemoryMapInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMemoryMapInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkMemoryMapInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkMemoryMapInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkMemoryMapInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-