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.StructValidation
Nested 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, STYPE
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkMemoryMapInfoKHR
(ByteBuffer container) Creates aVkMemoryMapInfoKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMemoryMapInfoKHR
calloc()
Returns a newVkMemoryMapInfoKHR
instance allocated withmemCalloc
.static VkMemoryMapInfoKHR.Buffer
calloc
(int capacity) Returns a newVkMemoryMapInfoKHR.Buffer
instance allocated withmemCalloc
.static VkMemoryMapInfoKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkMemoryMapInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkMemoryMapInfoKHR
calloc
(MemoryStack stack) Returns a newVkMemoryMapInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkMemoryMapInfoKHR
create()
Returns a newVkMemoryMapInfoKHR
instance allocated withBufferUtils
.static VkMemoryMapInfoKHR.Buffer
create
(int capacity) Returns a newVkMemoryMapInfoKHR.Buffer
instance allocated withBufferUtils
.static VkMemoryMapInfoKHR
create
(long address) Returns a newVkMemoryMapInfoKHR
instance for the specified memory address.static VkMemoryMapInfoKHR.Buffer
create
(long address, int capacity) Create aVkMemoryMapInfoKHR.Buffer
instance at the specified memory.static @Nullable VkMemoryMapInfoKHR
createSafe
(long address) static @Nullable VkMemoryMapInfoKHR.Buffer
createSafe
(long address, int capacity) flags
(int value) Sets the specified value to theflags
field.static VkMemoryMapInfoKHR
malloc()
Returns a newVkMemoryMapInfoKHR
instance allocated withmemAlloc
.static VkMemoryMapInfoKHR.Buffer
malloc
(int capacity) Returns a newVkMemoryMapInfoKHR.Buffer
instance allocated withmemAlloc
.static VkMemoryMapInfoKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkMemoryMapInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkMemoryMapInfoKHR
malloc
(MemoryStack stack) Returns a newVkMemoryMapInfoKHR
instance allocated on the specifiedMemoryStack
.memory
(long value) Sets the specified value to thememory
field.offset
(long value) Sets the specified value to theoffset
field.pNext
(long value) Sets the specified value to thepNext
field.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 thesize
field.sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_MEMORY_MAP_INFO
value to thesType
field.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, sType
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkMemoryMapInfoKHR
Creates aVkMemoryMapInfoKHR
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sType
Sets the specified value to thesType
field.- Overrides:
sType
in classVkMemoryMapInfo
-
sType$Default
Sets theSTRUCTURE_TYPE_MEMORY_MAP_INFO
value to thesType
field.- Overrides:
sType$Default
in classVkMemoryMapInfo
-
pNext
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkMemoryMapInfo
-
flags
Sets the specified value to theflags
field.- Overrides:
flags
in classVkMemoryMapInfo
-
memory
Sets the specified value to thememory
field.- Overrides:
memory
in classVkMemoryMapInfo
-
offset
Sets the specified value to theoffset
field.- Overrides:
offset
in classVkMemoryMapInfo
-
size
Sets the specified value to thesize
field.- Overrides:
size
in 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:
set
in classVkMemoryMapInfo
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkMemoryMapInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkMemoryMapInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkMemoryMapInfoKHR
instance allocated withBufferUtils
. -
create
Returns a newVkMemoryMapInfoKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMemoryMapInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkMemoryMapInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkMemoryMapInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkMemoryMapInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMemoryMapInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkMemoryMapInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkMemoryMapInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkMemoryMapInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-