Package org.lwjgl.vulkan
Class VkMemoryAllocateInfo.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SELF>
org.lwjgl.system.StructBuffer<VkMemoryAllocateInfo,VkMemoryAllocateInfo.Buffer>
org.lwjgl.vulkan.VkMemoryAllocateInfo.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<VkMemoryAllocateInfo>
,NativeResource
,Pointer
- Enclosing class:
VkMemoryAllocateInfo
public static class VkMemoryAllocateInfo.Buffer
extends StructBuffer<VkMemoryAllocateInfo,VkMemoryAllocateInfo.Buffer>
implements NativeResource
An array of
VkMemoryAllocateInfo
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newVkMemoryAllocateInfo.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlong
allocationSize
(long value) Sets the specified value to theVkMemoryAllocateInfo.allocationSize()
field.int
memoryTypeIndex
(int value) Sets the specified value to theVkMemoryAllocateInfo.memoryTypeIndex()
field.long
pNext()
pNext
(long value) Sets the specified value to theVkMemoryAllocateInfo.pNext()
field.Prepends the specifiedVkDedicatedAllocationMemoryAllocateInfoNV
value to thepNext
chain.pNext
(VkExportMemoryAllocateInfo value) Prepends the specifiedVkExportMemoryAllocateInfo
value to thepNext
chain.Prepends the specifiedVkExportMemoryAllocateInfoKHR
value to thepNext
chain.Prepends the specifiedVkExportMemoryAllocateInfoNV
value to thepNext
chain.Prepends the specifiedVkExportMemoryWin32HandleInfoKHR
value to thepNext
chain.Prepends the specifiedVkExportMemoryWin32HandleInfoNV
value to thepNext
chain.Prepends the specifiedVkExportMetalObjectCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkImportAndroidHardwareBufferInfoANDROID
value to thepNext
chain.pNext
(VkImportMemoryFdInfoKHR value) Prepends the specifiedVkImportMemoryFdInfoKHR
value to thepNext
chain.Prepends the specifiedVkImportMemoryHostPointerInfoEXT
value to thepNext
chain.Prepends the specifiedVkImportMemoryWin32HandleInfoKHR
value to thepNext
chain.Prepends the specifiedVkImportMemoryWin32HandleInfoNV
value to thepNext
chain.pNext
(VkImportMetalBufferInfoEXT value) Prepends the specifiedVkImportMetalBufferInfoEXT
value to thepNext
chain.pNext
(VkMemoryAllocateFlagsInfo value) Prepends the specifiedVkMemoryAllocateFlagsInfo
value to thepNext
chain.Prepends the specifiedVkMemoryAllocateFlagsInfoKHR
value to thepNext
chain.Prepends the specifiedVkMemoryDedicatedAllocateInfo
value to thepNext
chain.Prepends the specifiedVkMemoryDedicatedAllocateInfoKHR
value to thepNext
chain.Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfo
value to thepNext
chain.Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfoKHR
value to thepNext
chain.Prepends the specifiedVkMemoryPriorityAllocateInfoEXT
value to thepNext
chain.int
sType()
sType
(int value) Sets the specified value to theVkMemoryAllocateInfo.sType()
field.Sets theSTRUCTURE_TYPE_MEMORY_ALLOCATE_INFO
value to theVkMemoryAllocateInfo.sType()
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newVkMemoryAllocateInfo.Buffer
instance backed by the specified container.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
VkMemoryAllocateInfo.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
sType
public int sType()- Returns:
- the value of the
VkMemoryAllocateInfo.sType()
field.
-
pNext
public long pNext()- Returns:
- the value of the
VkMemoryAllocateInfo.pNext()
field.
-
allocationSize
public long allocationSize()- Returns:
- the value of the
VkMemoryAllocateInfo.allocationSize()
field.
-
memoryTypeIndex
public int memoryTypeIndex()- Returns:
- the value of the
VkMemoryAllocateInfo.memoryTypeIndex()
field.
-
sType
Sets the specified value to theVkMemoryAllocateInfo.sType()
field. -
sType$Default
Sets theSTRUCTURE_TYPE_MEMORY_ALLOCATE_INFO
value to theVkMemoryAllocateInfo.sType()
field. -
pNext
Sets the specified value to theVkMemoryAllocateInfo.pNext()
field. -
pNext
Prepends the specifiedVkDedicatedAllocationMemoryAllocateInfoNV
value to thepNext
chain. -
pNext
Prepends the specifiedVkExportMemoryAllocateInfo
value to thepNext
chain. -
pNext
Prepends the specifiedVkExportMemoryAllocateInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkExportMemoryAllocateInfoNV
value to thepNext
chain. -
pNext
Prepends the specifiedVkExportMemoryWin32HandleInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkExportMemoryWin32HandleInfoNV
value to thepNext
chain. -
pNext
Prepends the specifiedVkExportMetalObjectCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkImportAndroidHardwareBufferInfoANDROID
value to thepNext
chain. -
pNext
Prepends the specifiedVkImportMemoryFdInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkImportMemoryHostPointerInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkImportMemoryWin32HandleInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkImportMemoryWin32HandleInfoNV
value to thepNext
chain. -
pNext
Prepends the specifiedVkImportMetalBufferInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkMemoryAllocateFlagsInfo
value to thepNext
chain. -
pNext
Prepends the specifiedVkMemoryAllocateFlagsInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkMemoryDedicatedAllocateInfo
value to thepNext
chain. -
pNext
Prepends the specifiedVkMemoryDedicatedAllocateInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfo
value to thepNext
chain. -
pNext
Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkMemoryPriorityAllocateInfoEXT
value to thepNext
chain. -
allocationSize
Sets the specified value to theVkMemoryAllocateInfo.allocationSize()
field. -
memoryTypeIndex
Sets the specified value to theVkMemoryAllocateInfo.memoryTypeIndex()
field.
-