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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aSpvcMslShaderInterfaceVar2
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
builtin()
builtin
(int value) Sets the specified value to thebuiltin
field.static SpvcMslShaderInterfaceVar2
calloc()
Returns a newSpvcMslShaderInterfaceVar2
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSpvcMslShaderInterfaceVar2.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSpvcMslShaderInterfaceVar2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcMslShaderInterfaceVar2
calloc
(MemoryStack stack) Returns a newSpvcMslShaderInterfaceVar2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcMslShaderInterfaceVar2
create()
Returns a newSpvcMslShaderInterfaceVar2
instance allocated withBufferUtils
.create
(int capacity) Returns a newSpvcMslShaderInterfaceVar2.Buffer
instance allocated withBufferUtils
.static SpvcMslShaderInterfaceVar2
create
(long address) Returns a newSpvcMslShaderInterfaceVar2
instance for the specified memory address.create
(long address, int capacity) Create aSpvcMslShaderInterfaceVar2.Buffer
instance at the specified memory.static @Nullable SpvcMslShaderInterfaceVar2
createSafe
(long address) static @Nullable SpvcMslShaderInterfaceVar2.Buffer
createSafe
(long address, int capacity) int
format()
format
(int value) Sets the specified value to theformat
field.int
location()
location
(int value) Sets the specified value to thelocation
field.static SpvcMslShaderInterfaceVar2
malloc()
Returns a newSpvcMslShaderInterfaceVar2
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSpvcMslShaderInterfaceVar2.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSpvcMslShaderInterfaceVar2.Buffer
instance allocated on the specifiedMemoryStack
.static SpvcMslShaderInterfaceVar2
malloc
(MemoryStack stack) Returns a newSpvcMslShaderInterfaceVar2
instance allocated on the specifiedMemoryStack
.static int
nbuiltin
(long struct) Unsafe version ofbuiltin()
.static void
nbuiltin
(long struct, int value) Unsafe version ofbuiltin
.static int
nformat
(long struct) Unsafe version offormat()
.static void
nformat
(long struct, int value) Unsafe version offormat
.static int
nlocation
(long struct) Unsafe version oflocation()
.static void
nlocation
(long struct, int value) Unsafe version oflocation
.static int
nrate
(long struct) Unsafe version ofrate()
.static void
nrate
(long struct, int value) Unsafe version ofrate
.static int
nvecsize
(long struct) Unsafe version ofvecsize()
.static void
nvecsize
(long struct, int value) Unsafe version ofvecsize
.int
rate()
rate
(int value) Sets the specified value to therate
field.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.int
sizeof()
Returnssizeof(struct)
.int
vecsize()
vecsize
(int value) Sets the specified value to thevecsize
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aSpvcMslShaderInterfaceVar2
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SpvcMslShaderInterfaceVar2>
-
location
public int location()- Returns:
- the value of the
location
field.
-
format
public int format()- Returns:
- the value of the
format
field.
-
builtin
public int builtin()- Returns:
- the value of the
builtin
field.
-
vecsize
public int vecsize()- Returns:
- the value of the
vecsize
field.
-
rate
public int rate()- Returns:
- the value of the
rate
field.
-
location
Sets the specified value to thelocation
field. -
format
Sets the specified value to theformat
field. -
builtin
Sets the specified value to thebuiltin
field. -
vecsize
Sets the specified value to thevecsize
field. -
rate
Sets the specified value to therate
field. -
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 newSpvcMslShaderInterfaceVar2
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslShaderInterfaceVar2
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSpvcMslShaderInterfaceVar2
instance allocated withBufferUtils
. -
create
Returns a newSpvcMslShaderInterfaceVar2
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslShaderInterfaceVar2.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSpvcMslShaderInterfaceVar2.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSpvcMslShaderInterfaceVar2.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSpvcMslShaderInterfaceVar2.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslShaderInterfaceVar2
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslShaderInterfaceVar2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSpvcMslShaderInterfaceVar2.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslShaderInterfaceVar2.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-