Package org.lwjgl.vulkan
Class VkBaseInStructure
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBaseInStructure
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBaseInStructure extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceBase structure for a read-only pointer chain.Description
VkBaseInStructurecan be used to facilitate iterating through a read-only structure pointer chain.See Also
Member documentation
sType– the structure type of the structure being iterated through.pNext–NULLor a pointer to the next structure in a structure chain.
Layout
struct VkBaseInStructure { VkStructureType sType;VkBaseInStructure* pNext; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBaseInStructure.BufferAn array ofVkBaseInStructurestructs.
-
Constructor Summary
Constructors Constructor Description VkBaseInStructure(java.nio.ByteBuffer container)Creates aVkBaseInStructureinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkBaseInStructurecalloc()Returns a newVkBaseInStructureinstance allocated withmemCalloc.static VkBaseInStructure.Buffercalloc(int capacity)Returns a newVkBaseInStructure.Bufferinstance allocated withmemCalloc.static VkBaseInStructurecallocStack()Returns a newVkBaseInStructureinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBaseInStructure.BuffercallocStack(int capacity)Returns a newVkBaseInStructure.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBaseInStructure.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBaseInStructure.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBaseInStructurecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBaseInStructureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBaseInStructurecreate()Returns a newVkBaseInStructureinstance allocated withBufferUtils.static VkBaseInStructure.Buffercreate(int capacity)Returns a newVkBaseInStructure.Bufferinstance allocated withBufferUtils.static VkBaseInStructurecreate(long address)Returns a newVkBaseInStructureinstance for the specified memory address.static VkBaseInStructure.Buffercreate(long address, int capacity)Create aVkBaseInStructure.Bufferinstance at the specified memory.static VkBaseInStructurecreateSafe(long address)static VkBaseInStructure.BuffercreateSafe(long address, int capacity)static VkBaseInStructuremalloc()Returns a newVkBaseInStructureinstance allocated withmemAlloc.static VkBaseInStructure.Buffermalloc(int capacity)Returns a newVkBaseInStructure.Bufferinstance allocated withmemAlloc.static VkBaseInStructuremallocStack()Returns a newVkBaseInStructureinstance allocated on the thread-localMemoryStack.static VkBaseInStructure.BuffermallocStack(int capacity)Returns a newVkBaseInStructure.Bufferinstance allocated on the thread-localMemoryStack.static VkBaseInStructure.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBaseInStructure.Bufferinstance allocated on the specifiedMemoryStack.static VkBaseInStructuremallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBaseInStructureinstance allocated on the specifiedMemoryStack.static VkBaseInStructurenpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, VkBaseInStructure value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkBaseInStructurepNext()Returns aVkBaseInStructureview of the struct pointed to by thepNextfield.VkBaseInStructurepNext(VkBaseInStructure value)Sets the address of the specifiedVkBaseInStructureto thepNextfield.VkBaseInStructureset(int sType, VkBaseInStructure pNext)Initializes this struct with the specified values.VkBaseInStructureset(VkBaseInStructure src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkBaseInStructuresType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkBaseInStructure
public VkBaseInStructure(java.nio.ByteBuffer container)
Creates aVkBaseInStructureinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
@Nullable public VkBaseInStructure pNext()
Returns aVkBaseInStructureview of the struct pointed to by thepNextfield.
-
sType
public VkBaseInStructure sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkBaseInStructure pNext(@Nullable VkBaseInStructure value)
Sets the address of the specifiedVkBaseInStructureto thepNextfield.
-
set
public VkBaseInStructure set(int sType, @Nullable VkBaseInStructure pNext)
Initializes this struct with the specified values.
-
set
public VkBaseInStructure set(VkBaseInStructure src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBaseInStructure malloc()
Returns a newVkBaseInStructureinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBaseInStructure calloc()
Returns a newVkBaseInStructureinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBaseInStructure create()
Returns a newVkBaseInStructureinstance allocated withBufferUtils.
-
create
public static VkBaseInStructure create(long address)
Returns a newVkBaseInStructureinstance for the specified memory address.
-
createSafe
@Nullable public static VkBaseInStructure createSafe(long address)
-
malloc
public static VkBaseInStructure.Buffer malloc(int capacity)
Returns a newVkBaseInStructure.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBaseInStructure.Buffer calloc(int capacity)
Returns a newVkBaseInStructure.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBaseInStructure.Buffer create(int capacity)
Returns a newVkBaseInStructure.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBaseInStructure.Buffer create(long address, int capacity)
Create aVkBaseInStructure.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBaseInStructure.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkBaseInStructure mallocStack()
Returns a newVkBaseInStructureinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkBaseInStructure callocStack()
Returns a newVkBaseInStructureinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkBaseInStructure mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBaseInStructureinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkBaseInStructure callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBaseInStructureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkBaseInStructure.Buffer mallocStack(int capacity)
Returns a newVkBaseInStructure.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkBaseInStructure.Buffer callocStack(int capacity)
Returns a newVkBaseInStructure.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkBaseInStructure.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBaseInStructure.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkBaseInStructure.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBaseInStructure.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
@Nullable public static VkBaseInStructure npNext(long struct)
Unsafe version ofpNext().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, @Nullable VkBaseInStructure value)Unsafe version ofpNext.
-
-