Package org.lwjgl.util.spvc
Class SpvcMslVertexAttribute
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SpvcMslVertexAttribute
extends Struct<SpvcMslVertexAttribute>
implements NativeResource
struct spvc_msl_vertex_attribute {
unsigned int location;
unsigned int msl_buffer;
unsigned int msl_offset;
unsigned int msl_stride;
spvc_bool per_instance;
spvc_msl_vertex_format format;
SpvBuiltIn builtin;
}
-
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
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSpvcMslVertexAttribute
(ByteBuffer container) Creates aSpvcMslVertexAttribute
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
builtin()
builtin
(int value) Sets the specified value to thebuiltin
field.static SpvcMslVertexAttribute
calloc()
Returns a newSpvcMslVertexAttribute
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSpvcMslVertexAttribute.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSpvcMslVertexAttribute.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcMslVertexAttribute
calloc
(MemoryStack stack) Returns a newSpvcMslVertexAttribute
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcMslVertexAttribute
create()
Returns a newSpvcMslVertexAttribute
instance allocated withBufferUtils
.create
(int capacity) Returns a newSpvcMslVertexAttribute.Buffer
instance allocated withBufferUtils
.static SpvcMslVertexAttribute
create
(long address) Returns a newSpvcMslVertexAttribute
instance for the specified memory address.create
(long address, int capacity) Create aSpvcMslVertexAttribute.Buffer
instance at the specified memory.static @Nullable SpvcMslVertexAttribute
createSafe
(long address) static @Nullable SpvcMslVertexAttribute.Buffer
createSafe
(long address, int capacity) int
format()
format
(int value) Sets the specified value to theformat
field.int
location()
location
(int value) Sets the specified value to thelocation
field.static SpvcMslVertexAttribute
malloc()
Returns a newSpvcMslVertexAttribute
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSpvcMslVertexAttribute.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSpvcMslVertexAttribute.Buffer
instance allocated on the specifiedMemoryStack
.static SpvcMslVertexAttribute
malloc
(MemoryStack stack) Returns a newSpvcMslVertexAttribute
instance allocated on the specifiedMemoryStack
.int
msl_buffer
(int value) Sets the specified value to themsl_buffer
field.int
msl_offset
(int value) Sets the specified value to themsl_offset
field.int
msl_stride
(int value) Sets the specified value to themsl_stride
field.static int
nbuiltin
(long struct) Unsafe version ofbuiltin()
.static void
nbuiltin
(long struct, int value) Unsafe version ofbuiltin
.static int
nformat
(long struct) Unsafe version offormat()
.static void
nformat
(long struct, int value) Unsafe version offormat
.static int
nlocation
(long struct) Unsafe version oflocation()
.static void
nlocation
(long struct, int value) Unsafe version oflocation
.static int
nmsl_buffer
(long struct) Unsafe version ofmsl_buffer()
.static void
nmsl_buffer
(long struct, int value) Unsafe version ofmsl_buffer
.static int
nmsl_offset
(long struct) Unsafe version ofmsl_offset()
.static void
nmsl_offset
(long struct, int value) Unsafe version ofmsl_offset
.static int
nmsl_stride
(long struct) Unsafe version ofmsl_stride()
.static void
nmsl_stride
(long struct, int value) Unsafe version ofmsl_stride
.static boolean
nper_instance
(long struct) Unsafe version ofper_instance()
.static void
nper_instance
(long struct, boolean value) Unsafe version ofper_instance
.boolean
per_instance
(boolean value) Sets the specified value to theper_instance
field.set
(int location, int msl_buffer, int msl_offset, int msl_stride, boolean per_instance, int format, int builtin) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
LOCATION
public static final int LOCATIONThe struct member offsets. -
MSL_BUFFER
public static final int MSL_BUFFERThe struct member offsets. -
MSL_OFFSET
public static final int MSL_OFFSETThe struct member offsets. -
MSL_STRIDE
public static final int MSL_STRIDEThe struct member offsets. -
PER_INSTANCE
public static final int PER_INSTANCEThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
BUILTIN
public static final int BUILTINThe struct member offsets.
-
-
Constructor Details
-
SpvcMslVertexAttribute
Creates aSpvcMslVertexAttribute
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
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SpvcMslVertexAttribute>
-
location
public int location()- Returns:
- the value of the
location
field.
-
msl_buffer
public int msl_buffer()- Returns:
- the value of the
msl_buffer
field.
-
msl_offset
public int msl_offset()- Returns:
- the value of the
msl_offset
field.
-
msl_stride
public int msl_stride()- Returns:
- the value of the
msl_stride
field.
-
per_instance
public boolean per_instance()- Returns:
- the value of the
per_instance
field.
-
format
public int format()- Returns:
- the value of the
format
field.
-
builtin
public int builtin()- Returns:
- the value of the
builtin
field.
-
location
Sets the specified value to thelocation
field. -
msl_buffer
Sets the specified value to themsl_buffer
field. -
msl_offset
Sets the specified value to themsl_offset
field. -
msl_stride
Sets the specified value to themsl_stride
field. -
per_instance
Sets the specified value to theper_instance
field. -
format
Sets the specified value to theformat
field. -
builtin
Sets the specified value to thebuiltin
field. -
set
public SpvcMslVertexAttribute set(int location, int msl_buffer, int msl_offset, int msl_stride, boolean per_instance, int format, int builtin) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newSpvcMslVertexAttribute
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslVertexAttribute
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSpvcMslVertexAttribute
instance allocated withBufferUtils
. -
create
Returns a newSpvcMslVertexAttribute
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslVertexAttribute.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSpvcMslVertexAttribute.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSpvcMslVertexAttribute.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSpvcMslVertexAttribute.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslVertexAttribute
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslVertexAttribute
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSpvcMslVertexAttribute.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslVertexAttribute.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nlocation
public static int nlocation(long struct) Unsafe version oflocation()
. -
nmsl_buffer
public static int nmsl_buffer(long struct) Unsafe version ofmsl_buffer()
. -
nmsl_offset
public static int nmsl_offset(long struct) Unsafe version ofmsl_offset()
. -
nmsl_stride
public static int nmsl_stride(long struct) Unsafe version ofmsl_stride()
. -
nper_instance
public static boolean nper_instance(long struct) Unsafe version ofper_instance()
. -
nformat
public static int nformat(long struct) Unsafe version offormat()
. -
nbuiltin
public static int nbuiltin(long struct) Unsafe version ofbuiltin()
. -
nlocation
public static void nlocation(long struct, int value) Unsafe version oflocation
. -
nmsl_buffer
public static void nmsl_buffer(long struct, int value) Unsafe version ofmsl_buffer
. -
nmsl_offset
public static void nmsl_offset(long struct, int value) Unsafe version ofmsl_offset
. -
nmsl_stride
public static void nmsl_stride(long struct, int value) Unsafe version ofmsl_stride
. -
nper_instance
public static void nper_instance(long struct, boolean value) Unsafe version ofper_instance
. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat
. -
nbuiltin
public static void nbuiltin(long struct, int value) Unsafe version ofbuiltin
.
-