public class SpvcMslVertexAttribute
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
After compilation, it is possible to query whether or not this location was used.
struct SpvcMslVertexAttribute {
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
SpvcMslVertexAttribute.Buffer
An array of
SpvcMslVertexAttribute structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUILTIN
The struct member offsets.
|
static int |
FORMAT
The struct member offsets.
|
static int |
LOCATION
The struct member offsets.
|
static int |
MSL_BUFFER
The struct member offsets.
|
static int |
MSL_OFFSET
The struct member offsets.
|
static int |
MSL_STRIDE
The struct member offsets.
|
static int |
PER_INSTANCE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
SpvcMslVertexAttribute(java.nio.ByteBuffer container)
Creates a
SpvcMslVertexAttribute instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
builtin()
Returns the value of the
builtin field. |
SpvcMslVertexAttribute |
builtin(int value)
Sets the specified value to the
builtin field. |
static SpvcMslVertexAttribute |
calloc()
Returns a new
SpvcMslVertexAttribute instance allocated with memCalloc. |
static SpvcMslVertexAttribute.Buffer |
calloc(int capacity)
Returns a new
SpvcMslVertexAttribute.Buffer instance allocated with memCalloc. |
static SpvcMslVertexAttribute |
callocStack()
Returns a new
SpvcMslVertexAttribute instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcMslVertexAttribute.Buffer |
callocStack(int capacity)
Returns a new
SpvcMslVertexAttribute.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcMslVertexAttribute.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcMslVertexAttribute.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcMslVertexAttribute |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcMslVertexAttribute instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcMslVertexAttribute |
create()
Returns a new
SpvcMslVertexAttribute instance allocated with BufferUtils. |
static SpvcMslVertexAttribute.Buffer |
create(int capacity)
Returns a new
SpvcMslVertexAttribute.Buffer instance allocated with BufferUtils. |
static SpvcMslVertexAttribute |
create(long address)
Returns a new
SpvcMslVertexAttribute instance for the specified memory address. |
static SpvcMslVertexAttribute.Buffer |
create(long address,
int capacity)
Create a
SpvcMslVertexAttribute.Buffer instance at the specified memory. |
static SpvcMslVertexAttribute |
createSafe(long address)
|
static SpvcMslVertexAttribute.Buffer |
createSafe(long address,
int capacity)
|
int |
format()
Returns the value of the
format field. |
SpvcMslVertexAttribute |
format(int value)
Sets the specified value to the
format field. |
int |
location()
Returns the value of the
location field. |
SpvcMslVertexAttribute |
location(int value)
Sets the specified value to the
location field. |
static SpvcMslVertexAttribute |
malloc()
Returns a new
SpvcMslVertexAttribute instance allocated with memAlloc. |
static SpvcMslVertexAttribute.Buffer |
malloc(int capacity)
Returns a new
SpvcMslVertexAttribute.Buffer instance allocated with memAlloc. |
static SpvcMslVertexAttribute |
mallocStack()
Returns a new
SpvcMslVertexAttribute instance allocated on the thread-local MemoryStack. |
static SpvcMslVertexAttribute.Buffer |
mallocStack(int capacity)
Returns a new
SpvcMslVertexAttribute.Buffer instance allocated on the thread-local MemoryStack. |
static SpvcMslVertexAttribute.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcMslVertexAttribute.Buffer instance allocated on the specified MemoryStack. |
static SpvcMslVertexAttribute |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcMslVertexAttribute instance allocated on the specified MemoryStack. |
int |
msl_buffer()
Returns the value of the
msl_buffer field. |
SpvcMslVertexAttribute |
msl_buffer(int value)
Sets the specified value to the
msl_buffer field. |
int |
msl_offset()
Returns the value of the
msl_offset field. |
SpvcMslVertexAttribute |
msl_offset(int value)
Sets the specified value to the
msl_offset field. |
int |
msl_stride()
Returns the value of the
msl_stride field. |
SpvcMslVertexAttribute |
msl_stride(int value)
Sets the specified value to the
msl_stride field. |
static int |
nbuiltin(long struct)
Unsafe version of
builtin(). |
static void |
nbuiltin(long struct,
int value)
Unsafe version of
builtin. |
static int |
nformat(long struct)
Unsafe version of
format(). |
static void |
nformat(long struct,
int value)
Unsafe version of
format. |
static int |
nlocation(long struct)
Unsafe version of
location(). |
static void |
nlocation(long struct,
int value)
Unsafe version of
location. |
static int |
nmsl_buffer(long struct)
Unsafe version of
msl_buffer(). |
static void |
nmsl_buffer(long struct,
int value)
Unsafe version of
msl_buffer. |
static int |
nmsl_offset(long struct)
Unsafe version of
msl_offset(). |
static void |
nmsl_offset(long struct,
int value)
Unsafe version of
msl_offset. |
static int |
nmsl_stride(long struct)
Unsafe version of
msl_stride(). |
static void |
nmsl_stride(long struct,
int value)
Unsafe version of
msl_stride. |
static boolean |
nper_instance(long struct)
Unsafe version of
per_instance(). |
static void |
nper_instance(long struct,
boolean value)
Unsafe version of
per_instance. |
boolean |
per_instance()
Returns the value of the
per_instance field. |
SpvcMslVertexAttribute |
per_instance(boolean value)
Sets the specified value to the
per_instance field. |
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.
|
SpvcMslVertexAttribute |
set(SpvcMslVertexAttribute src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int LOCATION
public static final int MSL_BUFFER
public static final int MSL_OFFSET
public static final int MSL_STRIDE
public static final int PER_INSTANCE
public static final int FORMAT
public static final int BUILTIN
public SpvcMslVertexAttribute(java.nio.ByteBuffer container)
SpvcMslVertexAttribute 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int location()
location field.public int msl_buffer()
msl_buffer field.public int msl_offset()
msl_offset field.public int msl_stride()
msl_stride field.public boolean per_instance()
per_instance field.public int format()
format field.public int builtin()
builtin field.public SpvcMslVertexAttribute location(int value)
location field.public SpvcMslVertexAttribute msl_buffer(int value)
msl_buffer field.public SpvcMslVertexAttribute msl_offset(int value)
msl_offset field.public SpvcMslVertexAttribute msl_stride(int value)
msl_stride field.public SpvcMslVertexAttribute per_instance(boolean value)
per_instance field.public SpvcMslVertexAttribute format(int value)
format field.public SpvcMslVertexAttribute builtin(int value)
builtin field.public SpvcMslVertexAttribute set(int location, int msl_buffer, int msl_offset, int msl_stride, boolean per_instance, int format, int builtin)
public SpvcMslVertexAttribute set(SpvcMslVertexAttribute src)
src - the source structpublic static SpvcMslVertexAttribute malloc()
SpvcMslVertexAttribute instance allocated with memAlloc. The instance must be explicitly freed.public static SpvcMslVertexAttribute calloc()
SpvcMslVertexAttribute instance allocated with memCalloc. The instance must be explicitly freed.public static SpvcMslVertexAttribute create()
SpvcMslVertexAttribute instance allocated with BufferUtils.public static SpvcMslVertexAttribute create(long address)
SpvcMslVertexAttribute instance for the specified memory address.@Nullable public static SpvcMslVertexAttribute createSafe(long address)
public static SpvcMslVertexAttribute.Buffer malloc(int capacity)
SpvcMslVertexAttribute.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcMslVertexAttribute.Buffer calloc(int capacity)
SpvcMslVertexAttribute.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcMslVertexAttribute.Buffer create(int capacity)
SpvcMslVertexAttribute.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static SpvcMslVertexAttribute.Buffer create(long address, int capacity)
SpvcMslVertexAttribute.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static SpvcMslVertexAttribute.Buffer createSafe(long address, int capacity)
public static SpvcMslVertexAttribute mallocStack()
SpvcMslVertexAttribute instance allocated on the thread-local MemoryStack.public static SpvcMslVertexAttribute callocStack()
SpvcMslVertexAttribute instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static SpvcMslVertexAttribute mallocStack(org.lwjgl.system.MemoryStack stack)
SpvcMslVertexAttribute instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static SpvcMslVertexAttribute callocStack(org.lwjgl.system.MemoryStack stack)
SpvcMslVertexAttribute instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static SpvcMslVertexAttribute.Buffer mallocStack(int capacity)
SpvcMslVertexAttribute.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static SpvcMslVertexAttribute.Buffer callocStack(int capacity)
SpvcMslVertexAttribute.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static SpvcMslVertexAttribute.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcMslVertexAttribute.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static SpvcMslVertexAttribute.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcMslVertexAttribute.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nlocation(long struct)
location().public static int nmsl_buffer(long struct)
msl_buffer().public static int nmsl_offset(long struct)
msl_offset().public static int nmsl_stride(long struct)
msl_stride().public static boolean nper_instance(long struct)
per_instance().public static int nformat(long struct)
format().public static int nbuiltin(long struct)
builtin().public static void nlocation(long struct,
int value)
location.public static void nmsl_buffer(long struct,
int value)
msl_buffer.public static void nmsl_offset(long struct,
int value)
msl_offset.public static void nmsl_stride(long struct,
int value)
msl_stride.public static void nper_instance(long struct,
boolean value)
per_instance.public static void nformat(long struct,
int value)
format.public static void nbuiltin(long struct,
int value)
builtin.Copyright LWJGL. All Rights Reserved. License terms.