Package org.lwjgl.util.spvc
Class SpvcMslShaderInterfaceVar2
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class SpvcMslShaderInterfaceVar2
extends Struct<SpvcMslShaderInterfaceVar2>
implements NativeResource
struct spvc_msl_shader_interface_var_2 {
unsigned location;
spvc_msl_shader_variable_format format;
SpvBuiltIn builtin;
unsigned vecsize;
spvc_msl_shader_variable_rate rate;
}-
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 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
ConstructorsConstructorDescriptionSpvcMslShaderInterfaceVar2(ByteBuffer container) Creates aSpvcMslShaderInterfaceVar2instance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbuiltin()builtin(int value) Sets the specified value to thebuiltinfield.static SpvcMslShaderInterfaceVar2calloc()Returns a newSpvcMslShaderInterfaceVar2instance allocated withmemCalloc.calloc(int capacity) Returns a newSpvcMslShaderInterfaceVar2.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSpvcMslShaderInterfaceVar2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslShaderInterfaceVar2calloc(MemoryStack stack) Returns a newSpvcMslShaderInterfaceVar2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslShaderInterfaceVar2create()Returns a newSpvcMslShaderInterfaceVar2instance allocated withBufferUtils.create(int capacity) Returns a newSpvcMslShaderInterfaceVar2.Bufferinstance allocated withBufferUtils.static SpvcMslShaderInterfaceVar2create(long address) Returns a newSpvcMslShaderInterfaceVar2instance for the specified memory address.create(long address, int capacity) Create aSpvcMslShaderInterfaceVar2.Bufferinstance at the specified memory.static @Nullable SpvcMslShaderInterfaceVar2createSafe(long address) static @Nullable SpvcMslShaderInterfaceVar2.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 SpvcMslShaderInterfaceVar2malloc()Returns a newSpvcMslShaderInterfaceVar2instance allocated withmemAlloc.malloc(int capacity) Returns a newSpvcMslShaderInterfaceVar2.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSpvcMslShaderInterfaceVar2.Bufferinstance allocated on the specifiedMemoryStack.static SpvcMslShaderInterfaceVar2malloc(MemoryStack stack) Returns a newSpvcMslShaderInterfaceVar2instance 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 intnrate(long struct) Unsafe version ofrate().static voidnrate(long struct, int value) Unsafe version ofrate.static intnvecsize(long struct) Unsafe version ofvecsize().static voidnvecsize(long struct, int value) Unsafe version ofvecsize.intrate()rate(int value) Sets the specified value to theratefield.set(int location, int format, int builtin, int vecsize, int rate) 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. -
RATE
public static final int RATEThe struct member offsets.
-
-
Constructor Details
-
SpvcMslShaderInterfaceVar2
Creates aSpvcMslShaderInterfaceVar2instance 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<SpvcMslShaderInterfaceVar2>
-
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.
-
rate
public int rate()- Returns:
- the value of the
ratefield.
-
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. -
rate
Sets the specified value to theratefield. -
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 newSpvcMslShaderInterfaceVar2instance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslShaderInterfaceVar2instance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcMslShaderInterfaceVar2instance allocated withBufferUtils. -
create
Returns a newSpvcMslShaderInterfaceVar2instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslShaderInterfaceVar2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcMslShaderInterfaceVar2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcMslShaderInterfaceVar2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcMslShaderInterfaceVar2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslShaderInterfaceVar2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcMslShaderInterfaceVar2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcMslShaderInterfaceVar2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcMslShaderInterfaceVar2.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(). -
nrate
public static int nrate(long struct) Unsafe version ofrate(). -
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. -
nrate
public static void nrate(long struct, int value) Unsafe version ofrate.
-