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
Layout
struct VkBaseInStructure { VkStructureTypesType();VkBaseInStructureconst *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 Deprecated 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 VkBaseInStructure.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBaseInStructure.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBaseInStructurecalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBaseInStructureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBaseInStructurecallocStack()Deprecated.static VkBaseInStructure.BuffercallocStack(int capacity)Deprecated.static VkBaseInStructure.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkBaseInStructurecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkBaseInStructure.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBaseInStructure.Bufferinstance allocated on the specifiedMemoryStack.static VkBaseInStructuremalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBaseInStructureinstance allocated on the specifiedMemoryStack.static VkBaseInStructuremallocStack()Deprecated.static VkBaseInStructure.BuffermallocStack(int capacity)Deprecated.static VkBaseInStructure.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkBaseInStructuremallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to the next structure in a structure chain.VkBaseInStructurepNext(VkBaseInStructure value)Sets the address of the specifiedVkBaseInStructureto thepNext()field.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()the structure type of the structure being iterated through.VkBaseInStructuresType(int value)Sets the specified value to thesType()field.
-
-
-
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()
the structure type of the structure being iterated through.
-
pNext
@Nullable public VkBaseInStructure pNext()
NULLor a pointer to the next structure in a structure chain.
-
sType
public VkBaseInStructure sType(int value)
Sets the specified value to thesType()field.
-
pNext
public VkBaseInStructure pNext(@Nullable VkBaseInStructure value)
Sets the address of the specifiedVkBaseInStructureto thepNext()field.
-
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
@Deprecated public static VkBaseInStructure mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkBaseInStructure callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBaseInStructure mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkBaseInStructure callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBaseInStructure.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkBaseInStructure.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBaseInStructure.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkBaseInStructure.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkBaseInStructure malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBaseInStructureinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBaseInStructure calloc(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
-
malloc
public static VkBaseInStructure.Buffer malloc(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
-
calloc
public static VkBaseInStructure.Buffer calloc(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.
-
-