Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkVertexInputAttributeDescription2EXT

extends Struct<VkVertexInputAttributeDescription2EXT>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying the extended vertex input attribute description.
Valid Usage
Valid Usage (Implicit)
See Also

CmdSetVertexInputEXT

Layout


struct VkVertexInputAttributeDescription2EXT {
    VkStructureType sType;
    void * pNext;
    uint32_t location;
    uint32_t binding;
    VkFormat format;
    uint32_t offset;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BINDING

The struct member offsets.

public static final int
FORMAT

The struct member offsets.

public static final int
LOCATION

The struct member offsets.

public static final int
OFFSET

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkVertexInputAttributeDescription2EXT(ByteBuffer container)

Creates a VkVertexInputAttributeDescription2EXT instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
binding()

the binding number which this attribute takes its data from.

public VkVertexInputAttributeDescription2EXT
binding(int value)

Sets the specified value to the binding field.

public static VkVertexInputAttributeDescription2EXT
calloc()

Returns a new VkVertexInputAttributeDescription2EXT instance allocated with memCalloc.

public static VkVertexInputAttributeDescription2EXT.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkVertexInputAttributeDescription2EXT.Buffer instance allocated with memCalloc.

public static VkVertexInputAttributeDescription2EXT
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVertexInputAttributeDescription2EXT instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkVertexInputAttributeDescription2EXT.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVertexInputAttributeDescription2EXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkVertexInputAttributeDescription2EXT
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkVertexInputAttributeDescription2EXT
create()

Returns a new VkVertexInputAttributeDescription2EXT instance allocated with BufferUtils.

public static VkVertexInputAttributeDescription2EXT
create(long address)

Returns a new VkVertexInputAttributeDescription2EXT instance for the specified memory address.

public static VkVertexInputAttributeDescription2EXT.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkVertexInputAttributeDescription2EXT.Buffer instance allocated with BufferUtils.

public static VkVertexInputAttributeDescription2EXT.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkVertexInputAttributeDescription2EXT.Buffer instance at the specified memory.

public static VkVertexInputAttributeDescription2EXT
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkVertexInputAttributeDescription2EXT.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
format()

the size and type of the vertex attribute data.

public VkVertexInputAttributeDescription2EXT
format(int value)

Sets the specified value to the format field.

public int
location()

the shader input location number for this attribute.

public VkVertexInputAttributeDescription2EXT
location(int value)

Sets the specified value to the location field.

public static VkVertexInputAttributeDescription2EXT
malloc()

Returns a new VkVertexInputAttributeDescription2EXT instance allocated with memAlloc.

public static VkVertexInputAttributeDescription2EXT.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkVertexInputAttributeDescription2EXT.Buffer instance allocated with memAlloc.

public static VkVertexInputAttributeDescription2EXT
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVertexInputAttributeDescription2EXT instance allocated on the specified MemoryStack.

public static VkVertexInputAttributeDescription2EXT.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVertexInputAttributeDescription2EXT.Buffer instance allocated on the specified MemoryStack.

public static int
nbinding(long struct)

Unsafe version of binding.

public static void
nbinding(long struct, int value)

Unsafe version of binding.

public static int
nformat(long struct)

Unsafe version of format.

public static void
nformat(long struct, int value)

Unsafe version of format.

public static int
nlocation(long struct)

Unsafe version of location.

public static void
nlocation(long struct, int value)

Unsafe version of location.

public static int
noffset(long struct)

Unsafe version of offset.

public static void
noffset(long struct, int value)

Unsafe version of offset.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public int
offset()

a byte offset of this attribute relative to the start of an element in the vertex input binding.

public VkVertexInputAttributeDescription2EXT
offset(int value)

Sets the specified value to the offset field.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkVertexInputAttributeDescription2EXT
pNext(long value)

Sets the specified value to the pNext field.

public VkVertexInputAttributeDescription2EXT
set(int sType, long pNext, int location, int binding, int format, int offset)

Initializes this struct with the specified values.

public VkVertexInputAttributeDescription2EXT

Returns:

this struct
set
(VkVertexInputAttributeDescription2EXT
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkVertexInputAttributeDescription2EXT
sType(int value)

Sets the specified value to the sType field.

public VkVertexInputAttributeDescription2EXT
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

BINDINGback to summary
public static final int BINDING

The struct member offsets.

FORMATback to summary
public static final int FORMAT

The struct member offsets.

LOCATIONback to summary
public static final int LOCATION

The struct member offsets.

OFFSETback to summary
public static final int OFFSET

The struct member offsets.

PNEXTback to summary
public static final int PNEXT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

STYPEback to summary
public static final int STYPE

The struct member offsets.

Constructor Detail

VkVertexInputAttributeDescription2EXTback to summary
protected VkVertexInputAttributeDescription2EXT(long address, ByteBuffer container)
VkVertexInputAttributeDescription2EXTback to summary
public VkVertexInputAttributeDescription2EXT(ByteBuffer container)

Creates a VkVertexInputAttributeDescription2EXT instance at the current position of the specified ByteBuffer 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 Detail

bindingback to summary
public int binding()

the binding number which this attribute takes its data from.

Annotations
@NativeType:uint32_t
bindingback to summary
public VkVertexInputAttributeDescription2EXT binding(int value)

Sets the specified value to the binding field.

callocback to summary
public static VkVertexInputAttributeDescription2EXT calloc()

Returns a new VkVertexInputAttributeDescription2EXT instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VkVertexInputAttributeDescription2EXT.Buffer calloc(int capacity)

Returns a new VkVertexInputAttributeDescription2EXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkVertexInputAttributeDescription2EXT calloc(MemoryStack stack)

Returns a new VkVertexInputAttributeDescription2EXT instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VkVertexInputAttributeDescription2EXT.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkVertexInputAttributeDescription2EXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected VkVertexInputAttributeDescription2EXT create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VkVertexInputAttributeDescription2EXT create()

Returns a new VkVertexInputAttributeDescription2EXT instance allocated with BufferUtils.

createback to summary
public static VkVertexInputAttributeDescription2EXT create(long address)

Returns a new VkVertexInputAttributeDescription2EXT instance for the specified memory address.

createback to summary
public static VkVertexInputAttributeDescription2EXT.Buffer create(int capacity)

Returns a new VkVertexInputAttributeDescription2EXT.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VkVertexInputAttributeDescription2EXT.Buffer create(long address, int capacity)

Create a VkVertexInputAttributeDescription2EXT.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkVertexInputAttributeDescription2EXT createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkVertexInputAttributeDescription2EXT.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
formatback to summary
public int format()

the size and type of the vertex attribute data.

Annotations
@NativeType:VkFormat
formatback to summary
public VkVertexInputAttributeDescription2EXT format(int value)

Sets the specified value to the format field.

locationback to summary
public int location()

the shader input location number for this attribute.

Annotations
@NativeType:uint32_t
locationback to summary
public VkVertexInputAttributeDescription2EXT location(int value)

Sets the specified value to the location field.

mallocback to summary
public static VkVertexInputAttributeDescription2EXT malloc()

Returns a new VkVertexInputAttributeDescription2EXT instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VkVertexInputAttributeDescription2EXT.Buffer malloc(int capacity)

Returns a new VkVertexInputAttributeDescription2EXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkVertexInputAttributeDescription2EXT malloc(MemoryStack stack)

Returns a new VkVertexInputAttributeDescription2EXT instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VkVertexInputAttributeDescription2EXT.Buffer malloc(int capacity, MemoryStack stack)

Returns a new VkVertexInputAttributeDescription2EXT.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nbindingback to summary
public static int nbinding(long struct)

Unsafe version of binding.

nbindingback to summary
public static void nbinding(long struct, int value)

Unsafe version of binding.

nformatback to summary
public static int nformat(long struct)

Unsafe version of format.

nformatback to summary
public static void nformat(long struct, int value)

Unsafe version of format.

nlocationback to summary
public static int nlocation(long struct)

Unsafe version of location.

nlocationback to summary
public static void nlocation(long struct, int value)

Unsafe version of location.

noffsetback to summary
public static int noffset(long struct)

Unsafe version of offset.

noffsetback to summary
public static void noffset(long struct, int value)

Unsafe version of offset.

npNextback to summary
public static long npNext(long struct)

Unsafe version of pNext.

npNextback to summary
public static void npNext(long struct, long value)

Unsafe version of pNext.

nsTypeback to summary
public static int nsType(long struct)

Unsafe version of sType.

nsTypeback to summary
public static void nsType(long struct, int value)

Unsafe version of sType.

offsetback to summary
public int offset()

a byte offset of this attribute relative to the start of an element in the vertex input binding.

Annotations
@NativeType:uint32_t
offsetback to summary
public VkVertexInputAttributeDescription2EXT offset(int value)

Sets the specified value to the offset field.

pNextback to summary
public long pNext()

NULL or a pointer to a structure extending this structure.

Annotations
@NativeType:void *
pNextback to summary
public VkVertexInputAttributeDescription2EXT pNext(long value)

Sets the specified value to the pNext field.

setback to summary
public VkVertexInputAttributeDescription2EXT set(int sType, long pNext, int location, int binding, int format, int offset)

Initializes this struct with the specified values.

setback to summary
public VkVertexInputAttributeDescription2EXT set(VkVertexInputAttributeDescription2EXT src)

Copies the specified struct data to this struct.

Parameters
src:VkVertexInputAttributeDescription2EXT

the source struct

Returns:VkVertexInputAttributeDescription2EXT

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
sTypeback to summary
public int sType()

a VkStructureType value identifying this structure.

Annotations
@NativeType:VkStructureType
sTypeback to summary
public VkVertexInputAttributeDescription2EXT sType(int value)

Sets the specified value to the sType field.

sType$Defaultback to summary
public VkVertexInputAttributeDescription2EXT sType$Default()

Sets the STRUCTURE_TYPE_VERTEX_INPUT_ATTRIBUTE_DESCRIPTION_2_EXT value to the sType field.

org.lwjgl.vulkan back to summary

public Class VkVertexInputAttributeDescription2EXT.Buffer

extends StructBuffer<VkVertexInputAttributeDescription2EXT, VkVertexInputAttributeDescription2EXT.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of VkVertexInputAttributeDescription2EXT structs.

Field Summary

Modifier and TypeField and Description
private static final VkVertexInputAttributeDescription2EXT

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkVertexInputAttributeDescription2EXT.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the VkVertexInputAttributeDescription2EXT#binding field.
binding
()

public VkVertexInputAttributeDescription2EXT.Buffer
binding(int value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#binding field.

public int

Returns:

the value of the VkVertexInputAttributeDescription2EXT#format field.
format
()

public VkVertexInputAttributeDescription2EXT.Buffer
format(int value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#format field.

protected VkVertexInputAttributeDescription2EXT
public int

Returns:

the value of the VkVertexInputAttributeDescription2EXT#location field.
location
()

public VkVertexInputAttributeDescription2EXT.Buffer
location(int value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#location field.

public int

Returns:

the value of the VkVertexInputAttributeDescription2EXT#offset field.
offset
()

public VkVertexInputAttributeDescription2EXT.Buffer
offset(int value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#offset field.

public long

Returns:

the value of the VkVertexInputAttributeDescription2EXT#pNext field.
pNext
()

public VkVertexInputAttributeDescription2EXT.Buffer
pNext(long value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#pNext field.

protected VkVertexInputAttributeDescription2EXT.Buffer
public int

Returns:

the value of the VkVertexInputAttributeDescription2EXT#sType field.
sType
()

public VkVertexInputAttributeDescription2EXT.Buffer
sType(int value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#sType field.

public VkVertexInputAttributeDescription2EXT.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkVertexInputAttributeDescription2EXT ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkVertexInputAttributeDescription2EXT.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 VkVertexInputAttributeDescription2EXT#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

bindingback to summary
public int binding()
Returns:int

the value of the VkVertexInputAttributeDescription2EXT#binding field.

Annotations
@NativeType:uint32_t
bindingback to summary
public VkVertexInputAttributeDescription2EXT.Buffer binding(int value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#binding field.

formatback to summary
public int format()
Returns:int

the value of the VkVertexInputAttributeDescription2EXT#format field.

Annotations
@NativeType:VkFormat
formatback to summary
public VkVertexInputAttributeDescription2EXT.Buffer format(int value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#format field.

getElementFactoryback to summary
protected VkVertexInputAttributeDescription2EXT getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
locationback to summary
public int location()
Returns:int

the value of the VkVertexInputAttributeDescription2EXT#location field.

Annotations
@NativeType:uint32_t
locationback to summary
public VkVertexInputAttributeDescription2EXT.Buffer location(int value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#location field.

offsetback to summary
public int offset()
Returns:int

the value of the VkVertexInputAttributeDescription2EXT#offset field.

Annotations
@NativeType:uint32_t
offsetback to summary
public VkVertexInputAttributeDescription2EXT.Buffer offset(int value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#offset field.

pNextback to summary
public long pNext()
Returns:long

the value of the VkVertexInputAttributeDescription2EXT#pNext field.

Annotations
@NativeType:void *
pNextback to summary
public VkVertexInputAttributeDescription2EXT.Buffer pNext(long value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#pNext field.

selfback to summary
protected VkVertexInputAttributeDescription2EXT.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
sTypeback to summary
public int sType()
Returns:int

the value of the VkVertexInputAttributeDescription2EXT#sType field.

Annotations
@NativeType:VkStructureType
sTypeback to summary
public VkVertexInputAttributeDescription2EXT.Buffer sType(int value)

Sets the specified value to the VkVertexInputAttributeDescription2EXT#sType field.

sType$Defaultback to summary
public VkVertexInputAttributeDescription2EXT.Buffer sType$Default()

Sets the STRUCTURE_TYPE_VERTEX_INPUT_ATTRIBUTE_DESCRIPTION_2_EXT value to the VkVertexInputAttributeDescription2EXT#sType field.