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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aSpvcMslVertexAttributeinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbuiltin()builtin(int value) Sets the specified value to thebuiltinfield.static SpvcMslVertexAttributecalloc()Returns a newSpvcMslVertexAttributeinstance allocated withmemCalloc.calloc(int capacity) Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSpvcMslVertexAttribute.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslVertexAttributecalloc(MemoryStack stack) Returns a newSpvcMslVertexAttributeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslVertexAttributecreate()Returns a newSpvcMslVertexAttributeinstance allocated withBufferUtils.create(int capacity) Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withBufferUtils.static SpvcMslVertexAttributecreate(long address) Returns a newSpvcMslVertexAttributeinstance for the specified memory address.create(long address, int capacity) Create aSpvcMslVertexAttribute.Bufferinstance at the specified memory.static @Nullable SpvcMslVertexAttributecreateSafe(long address) static @Nullable SpvcMslVertexAttribute.BuffercreateSafe(long address, int capacity) intformat()format(int value) Sets the specified value to theformatfield.intlocation()location(int value) Sets the specified value to thelocationfield.static SpvcMslVertexAttributemalloc()Returns a newSpvcMslVertexAttributeinstance allocated withmemAlloc.malloc(int capacity) Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSpvcMslVertexAttribute.Bufferinstance allocated on the specifiedMemoryStack.static SpvcMslVertexAttributemalloc(MemoryStack stack) Returns a newSpvcMslVertexAttributeinstance allocated on the specifiedMemoryStack.intmsl_buffer(int value) Sets the specified value to themsl_bufferfield.intmsl_offset(int value) Sets the specified value to themsl_offsetfield.intmsl_stride(int value) Sets the specified value to themsl_stridefield.static intnbuiltin(long struct) Unsafe version ofbuiltin().static voidnbuiltin(long struct, int value) Unsafe version ofbuiltin.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static intnlocation(long struct) Unsafe version oflocation().static voidnlocation(long struct, int value) Unsafe version oflocation.static intnmsl_buffer(long struct) Unsafe version ofmsl_buffer().static voidnmsl_buffer(long struct, int value) Unsafe version ofmsl_buffer.static intnmsl_offset(long struct) Unsafe version ofmsl_offset().static voidnmsl_offset(long struct, int value) Unsafe version ofmsl_offset.static intnmsl_stride(long struct) Unsafe version ofmsl_stride().static voidnmsl_stride(long struct, int value) Unsafe version ofmsl_stride.static booleannper_instance(long struct) Unsafe version ofper_instance().static voidnper_instance(long struct, boolean value) Unsafe version ofper_instance.booleanper_instance(boolean value) Sets the specified value to theper_instancefield.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.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aSpvcMslVertexAttributeinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SpvcMslVertexAttribute>
-
location
public int location()- Returns:
- the value of the
locationfield.
-
msl_buffer
public int msl_buffer()- Returns:
- the value of the
msl_bufferfield.
-
msl_offset
public int msl_offset()- Returns:
- the value of the
msl_offsetfield.
-
msl_stride
public int msl_stride()- Returns:
- the value of the
msl_stridefield.
-
per_instance
public boolean per_instance()- Returns:
- the value of the
per_instancefield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
builtin
public int builtin()- Returns:
- the value of the
builtinfield.
-
location
Sets the specified value to thelocationfield. -
msl_buffer
Sets the specified value to themsl_bufferfield. -
msl_offset
Sets the specified value to themsl_offsetfield. -
msl_stride
Sets the specified value to themsl_stridefield. -
per_instance
Sets the specified value to theper_instancefield. -
format
Sets the specified value to theformatfield. -
builtin
Sets the specified value to thebuiltinfield. -
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 newSpvcMslVertexAttributeinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslVertexAttributeinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcMslVertexAttributeinstance allocated withBufferUtils. -
create
Returns a newSpvcMslVertexAttributeinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcMslVertexAttribute.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslVertexAttributeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcMslVertexAttributeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcMslVertexAttribute.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcMslVertexAttribute.Bufferinstance allocated on the specifiedMemoryStackand 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.
-