Package org.lwjgl.util.spvc
Class SpvcMslResourceBinding2
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SpvcMslResourceBinding2
extends Struct<SpvcMslResourceBinding2>
implements NativeResource
struct spvc_msl_resource_binding_2 {
SpvExecutionModel stage;
unsigned int desc_set;
unsigned int binding;
unsigned int count;
unsigned int msl_buffer;
unsigned int msl_texture;
unsigned int msl_sampler;
}
-
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 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
ConstructorsConstructorDescriptionSpvcMslResourceBinding2
(ByteBuffer container) Creates aSpvcMslResourceBinding2
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
binding()
binding
(int value) Sets the specified value to thebinding
field.static SpvcMslResourceBinding2
calloc()
Returns a newSpvcMslResourceBinding2
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSpvcMslResourceBinding2.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSpvcMslResourceBinding2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcMslResourceBinding2
calloc
(MemoryStack stack) Returns a newSpvcMslResourceBinding2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
count()
count
(int value) Sets the specified value to thecount
field.static SpvcMslResourceBinding2
create()
Returns a newSpvcMslResourceBinding2
instance allocated withBufferUtils
.create
(int capacity) Returns a newSpvcMslResourceBinding2.Buffer
instance allocated withBufferUtils
.static SpvcMslResourceBinding2
create
(long address) Returns a newSpvcMslResourceBinding2
instance for the specified memory address.create
(long address, int capacity) Create aSpvcMslResourceBinding2.Buffer
instance at the specified memory.static @Nullable SpvcMslResourceBinding2
createSafe
(long address) static @Nullable SpvcMslResourceBinding2.Buffer
createSafe
(long address, int capacity) int
desc_set()
desc_set
(int value) Sets the specified value to thedesc_set
field.static SpvcMslResourceBinding2
malloc()
Returns a newSpvcMslResourceBinding2
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSpvcMslResourceBinding2.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSpvcMslResourceBinding2.Buffer
instance allocated on the specifiedMemoryStack
.static SpvcMslResourceBinding2
malloc
(MemoryStack stack) Returns a newSpvcMslResourceBinding2
instance allocated on the specifiedMemoryStack
.int
msl_buffer
(int value) Sets the specified value to themsl_buffer
field.int
msl_sampler
(int value) Sets the specified value to themsl_sampler
field.int
msl_texture
(int value) Sets the specified value to themsl_texture
field.static int
nbinding
(long struct) Unsafe version ofbinding()
.static void
nbinding
(long struct, int value) Unsafe version ofbinding
.static int
ncount
(long struct) Unsafe version ofcount()
.static void
ncount
(long struct, int value) Unsafe version ofcount
.static int
ndesc_set
(long struct) Unsafe version ofdesc_set()
.static void
ndesc_set
(long struct, int value) Unsafe version ofdesc_set
.static int
nmsl_buffer
(long struct) Unsafe version ofmsl_buffer()
.static void
nmsl_buffer
(long struct, int value) Unsafe version ofmsl_buffer
.static int
nmsl_sampler
(long struct) Unsafe version ofmsl_sampler()
.static void
nmsl_sampler
(long struct, int value) Unsafe version ofmsl_sampler
.static int
nmsl_texture
(long struct) Unsafe version ofmsl_texture()
.static void
nmsl_texture
(long struct, int value) Unsafe version ofmsl_texture
.static int
nstage
(long struct) Unsafe version ofstage()
.static void
nstage
(long struct, int value) Unsafe version ofstage
.set
(int stage, int desc_set, int binding, int count, int msl_buffer, int msl_texture, int msl_sampler) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
stage()
stage
(int value) Sets the specified value to thestage
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. -
STAGE
public static final int STAGEThe struct member offsets. -
DESC_SET
public static final int DESC_SETThe struct member offsets. -
BINDING
public static final int BINDINGThe struct member offsets. -
COUNT
public static final int COUNTThe struct member offsets. -
MSL_BUFFER
public static final int MSL_BUFFERThe struct member offsets. -
MSL_TEXTURE
public static final int MSL_TEXTUREThe struct member offsets. -
MSL_SAMPLER
public static final int MSL_SAMPLERThe struct member offsets.
-
-
Constructor Details
-
SpvcMslResourceBinding2
Creates aSpvcMslResourceBinding2
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<SpvcMslResourceBinding2>
-
stage
public int stage()- Returns:
- the value of the
stage
field.
-
desc_set
public int desc_set()- Returns:
- the value of the
desc_set
field.
-
binding
public int binding()- Returns:
- the value of the
binding
field.
-
count
public int count()- Returns:
- the value of the
count
field.
-
msl_buffer
public int msl_buffer()- Returns:
- the value of the
msl_buffer
field.
-
msl_texture
public int msl_texture()- Returns:
- the value of the
msl_texture
field.
-
msl_sampler
public int msl_sampler()- Returns:
- the value of the
msl_sampler
field.
-
stage
Sets the specified value to thestage
field. -
desc_set
Sets the specified value to thedesc_set
field. -
binding
Sets the specified value to thebinding
field. -
count
Sets the specified value to thecount
field. -
msl_buffer
Sets the specified value to themsl_buffer
field. -
msl_texture
Sets the specified value to themsl_texture
field. -
msl_sampler
Sets the specified value to themsl_sampler
field. -
set
public SpvcMslResourceBinding2 set(int stage, int desc_set, int binding, int count, int msl_buffer, int msl_texture, int msl_sampler) 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 newSpvcMslResourceBinding2
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslResourceBinding2
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSpvcMslResourceBinding2
instance allocated withBufferUtils
. -
create
Returns a newSpvcMslResourceBinding2
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslResourceBinding2.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSpvcMslResourceBinding2.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSpvcMslResourceBinding2.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSpvcMslResourceBinding2.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslResourceBinding2
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslResourceBinding2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSpvcMslResourceBinding2.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslResourceBinding2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nstage
public static int nstage(long struct) Unsafe version ofstage()
. -
ndesc_set
public static int ndesc_set(long struct) Unsafe version ofdesc_set()
. -
nbinding
public static int nbinding(long struct) Unsafe version ofbinding()
. -
ncount
public static int ncount(long struct) Unsafe version ofcount()
. -
nmsl_buffer
public static int nmsl_buffer(long struct) Unsafe version ofmsl_buffer()
. -
nmsl_texture
public static int nmsl_texture(long struct) Unsafe version ofmsl_texture()
. -
nmsl_sampler
public static int nmsl_sampler(long struct) Unsafe version ofmsl_sampler()
. -
nstage
public static void nstage(long struct, int value) Unsafe version ofstage
. -
ndesc_set
public static void ndesc_set(long struct, int value) Unsafe version ofdesc_set
. -
nbinding
public static void nbinding(long struct, int value) Unsafe version ofbinding
. -
ncount
public static void ncount(long struct, int value) Unsafe version ofcount
. -
nmsl_buffer
public static void nmsl_buffer(long struct, int value) Unsafe version ofmsl_buffer
. -
nmsl_texture
public static void nmsl_texture(long struct, int value) Unsafe version ofmsl_texture
. -
nmsl_sampler
public static void nmsl_sampler(long struct, int value) Unsafe version ofmsl_sampler
.
-