Package org.lwjgl.util.spvc
Class SpvcMslShaderInterfaceVar
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class SpvcMslShaderInterfaceVar
extends Struct<SpvcMslShaderInterfaceVar>
implements NativeResource
struct spvc_msl_shader_interface_var {
unsigned location;
spvc_msl_vertex_format format;
SpvBuiltIn builtin;
unsigned vecsize;
}-
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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSpvcMslShaderInterfaceVar(ByteBuffer container) Creates aSpvcMslShaderInterfaceVarinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbuiltin()builtin(int value) Sets the specified value to thebuiltinfield.static SpvcMslShaderInterfaceVarcalloc()Returns a newSpvcMslShaderInterfaceVarinstance allocated withmemCalloc.calloc(int capacity) Returns a newSpvcMslShaderInterfaceVar.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSpvcMslShaderInterfaceVar.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslShaderInterfaceVarcalloc(MemoryStack stack) Returns a newSpvcMslShaderInterfaceVarinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslShaderInterfaceVarcreate()Returns a newSpvcMslShaderInterfaceVarinstance allocated withBufferUtils.create(int capacity) Returns a newSpvcMslShaderInterfaceVar.Bufferinstance allocated withBufferUtils.static SpvcMslShaderInterfaceVarcreate(long address) Returns a newSpvcMslShaderInterfaceVarinstance for the specified memory address.create(long address, int capacity) Create aSpvcMslShaderInterfaceVar.Bufferinstance at the specified memory.static @Nullable SpvcMslShaderInterfaceVarcreateSafe(long address) static @Nullable SpvcMslShaderInterfaceVar.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 SpvcMslShaderInterfaceVarmalloc()Returns a newSpvcMslShaderInterfaceVarinstance allocated withmemAlloc.malloc(int capacity) Returns a newSpvcMslShaderInterfaceVar.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSpvcMslShaderInterfaceVar.Bufferinstance allocated on the specifiedMemoryStack.static SpvcMslShaderInterfaceVarmalloc(MemoryStack stack) Returns a newSpvcMslShaderInterfaceVarinstance allocated on the specifiedMemoryStack.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 intnvecsize(long struct) Unsafe version ofvecsize().static voidnvecsize(long struct, int value) Unsafe version ofvecsize.set(int location, int format, int builtin, int vecsize) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intvecsize()vecsize(int value) Sets the specified value to thevecsizefield.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. -
FORMAT
public static final int FORMATThe struct member offsets. -
BUILTIN
public static final int BUILTINThe struct member offsets. -
VECSIZE
public static final int VECSIZEThe struct member offsets.
-
-
Constructor Details
-
SpvcMslShaderInterfaceVar
Creates aSpvcMslShaderInterfaceVarinstance 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<SpvcMslShaderInterfaceVar>
-
location
public int location()- Returns:
- the value of the
locationfield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
builtin
public int builtin()- Returns:
- the value of the
builtinfield.
-
vecsize
public int vecsize()- Returns:
- the value of the
vecsizefield.
-
location
Sets the specified value to thelocationfield. -
format
Sets the specified value to theformatfield. -
builtin
Sets the specified value to thebuiltinfield. -
vecsize
Sets the specified value to thevecsizefield. -
set
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 newSpvcMslShaderInterfaceVarinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslShaderInterfaceVarinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcMslShaderInterfaceVarinstance allocated withBufferUtils. -
create
Returns a newSpvcMslShaderInterfaceVarinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslShaderInterfaceVar.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcMslShaderInterfaceVar.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcMslShaderInterfaceVar.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcMslShaderInterfaceVar.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslShaderInterfaceVarinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcMslShaderInterfaceVarinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcMslShaderInterfaceVar.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcMslShaderInterfaceVar.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(). -
nformat
public static int nformat(long struct) Unsafe version offormat(). -
nbuiltin
public static int nbuiltin(long struct) Unsafe version ofbuiltin(). -
nvecsize
public static int nvecsize(long struct) Unsafe version ofvecsize(). -
nlocation
public static void nlocation(long struct, int value) Unsafe version oflocation. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat. -
nbuiltin
public static void nbuiltin(long struct, int value) Unsafe version ofbuiltin. -
nvecsize
public static void nvecsize(long struct, int value) Unsafe version ofvecsize.
-