Package org.lwjgl.util.spvc
Class SpvcMslVertexAttribute
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.spvc.SpvcMslVertexAttribute
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SpvcMslVertexAttribute extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDefines MSL characteristics of a vertex attribute at a particular location.After compilation, it is possible to query whether or not this location was used.
Layout
struct spvc_msl_vertex_attribute { unsigned int location; unsigned intmsl_buffer(); unsigned intmsl_offset(); unsigned intmsl_stride(); spvc_boolper_instance(); spvc_msl_vertex_format format; SpvBuiltIn builtin; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpvcMslVertexAttribute.BufferAn array ofSpvcMslVertexAttributestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBUILTIN
FORMAT
LOCATION
MSL_BUFFER
MSL_OFFSET
MSL_STRIDE
PER_INSTANCEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description SpvcMslVertexAttribute(java.nio.ByteBuffer container)Creates aSpvcMslVertexAttributeinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbuiltin()SpvcMslVertexAttributebuiltin(int value)Sets the specified value to thebuiltinfield.static SpvcMslVertexAttributecalloc()Returns a newSpvcMslVertexAttributeinstance allocated withmemCalloc.static SpvcMslVertexAttribute.Buffercalloc(int capacity)Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withmemCalloc.static SpvcMslVertexAttribute.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslVertexAttribute.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslVertexAttributecalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslVertexAttributeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslVertexAttributecreate()Returns a newSpvcMslVertexAttributeinstance allocated withBufferUtils.static SpvcMslVertexAttribute.Buffercreate(int capacity)Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withBufferUtils.static SpvcMslVertexAttributecreate(long address)Returns a newSpvcMslVertexAttributeinstance for the specified memory address.static SpvcMslVertexAttribute.Buffercreate(long address, int capacity)Create aSpvcMslVertexAttribute.Bufferinstance at the specified memory.static SpvcMslVertexAttributecreateSafe(long address)static SpvcMslVertexAttribute.BuffercreateSafe(long address, int capacity)intformat()SpvcMslVertexAttributeformat(int value)Sets the specified value to theformatfield.intlocation()SpvcMslVertexAttributelocation(int value)Sets the specified value to thelocationfield.static SpvcMslVertexAttributemalloc()Returns a newSpvcMslVertexAttributeinstance allocated withmemAlloc.static SpvcMslVertexAttribute.Buffermalloc(int capacity)Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withmemAlloc.static SpvcMslVertexAttribute.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslVertexAttribute.Bufferinstance allocated on the specifiedMemoryStack.static SpvcMslVertexAttributemalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslVertexAttributeinstance allocated on the specifiedMemoryStack.intmsl_buffer()Obsolete, do not use.SpvcMslVertexAttributemsl_buffer(int value)Sets the specified value to themsl_buffer()field.intmsl_offset()Obsolete, do not use.SpvcMslVertexAttributemsl_offset(int value)Sets the specified value to themsl_offset()field.intmsl_stride()Obsolete, do not use.SpvcMslVertexAttributemsl_stride(int value)Sets the specified value to themsl_stride()field.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()Obsolete, do not use.SpvcMslVertexAttributeper_instance(boolean value)Sets the specified value to theper_instance()field.SpvcMslVertexAttributeset(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.SpvcMslVertexAttributeset(SpvcMslVertexAttribute src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
SpvcMslVertexAttribute
public SpvcMslVertexAttribute(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
location
public int location()
- Returns:
- the value of the
locationfield.
-
msl_buffer, msl_offset, msl_stride, per_instance
public int msl_buffer() public int msl_offset() public int msl_stride() public boolean per_instance()
Obsolete, do not use. Only lingers on for ABI compatibility.
-
format
public int format()
- Returns:
- the value of the
formatfield.
-
builtin
public int builtin()
- Returns:
- the value of the
builtinfield.
-
location
public SpvcMslVertexAttribute location(int value)
Sets the specified value to thelocationfield.
-
msl_buffer
public SpvcMslVertexAttribute msl_buffer(int value)
Sets the specified value to themsl_buffer()field.
-
msl_offset
public SpvcMslVertexAttribute msl_offset(int value)
Sets the specified value to themsl_offset()field.
-
msl_stride
public SpvcMslVertexAttribute msl_stride(int value)
Sets the specified value to themsl_stride()field.
-
per_instance
public SpvcMslVertexAttribute per_instance(boolean value)
Sets the specified value to theper_instance()field.
-
format
public SpvcMslVertexAttribute format(int value)
Sets the specified value to theformatfield.
-
builtin
public SpvcMslVertexAttribute builtin(int value)
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
public SpvcMslVertexAttribute set(SpvcMslVertexAttribute src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SpvcMslVertexAttribute malloc()
Returns a newSpvcMslVertexAttributeinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SpvcMslVertexAttribute calloc()
Returns a newSpvcMslVertexAttributeinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SpvcMslVertexAttribute create()
Returns a newSpvcMslVertexAttributeinstance allocated withBufferUtils.
-
create
public static SpvcMslVertexAttribute create(long address)
Returns a newSpvcMslVertexAttributeinstance for the specified memory address.
-
createSafe
@Nullable public static SpvcMslVertexAttribute createSafe(long address)
-
malloc
public static SpvcMslVertexAttribute.Buffer malloc(int capacity)
Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SpvcMslVertexAttribute.Buffer calloc(int capacity)
Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcMslVertexAttribute.Buffer create(int capacity)
Returns a newSpvcMslVertexAttribute.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcMslVertexAttribute.Buffer create(long address, int capacity)
Create aSpvcMslVertexAttribute.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SpvcMslVertexAttribute.Buffer createSafe(long address, int capacity)
-
malloc
public static SpvcMslVertexAttribute malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslVertexAttributeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SpvcMslVertexAttribute calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslVertexAttributeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SpvcMslVertexAttribute.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslVertexAttribute.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SpvcMslVertexAttribute.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslVertexAttribute.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-