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.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 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
ConstructorsConstructorDescriptionSpvcMslResourceBinding2(ByteBuffer container) Creates aSpvcMslResourceBinding2instance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbinding()binding(int value) Sets the specified value to thebindingfield.static SpvcMslResourceBinding2calloc()Returns a newSpvcMslResourceBinding2instance allocated withmemCalloc.calloc(int capacity) Returns a newSpvcMslResourceBinding2.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSpvcMslResourceBinding2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslResourceBinding2calloc(MemoryStack stack) Returns a newSpvcMslResourceBinding2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcount()count(int value) Sets the specified value to thecountfield.static SpvcMslResourceBinding2create()Returns a newSpvcMslResourceBinding2instance allocated withBufferUtils.create(int capacity) Returns a newSpvcMslResourceBinding2.Bufferinstance allocated withBufferUtils.static SpvcMslResourceBinding2create(long address) Returns a newSpvcMslResourceBinding2instance for the specified memory address.create(long address, int capacity) Create aSpvcMslResourceBinding2.Bufferinstance at the specified memory.static @Nullable SpvcMslResourceBinding2createSafe(long address) static @Nullable SpvcMslResourceBinding2.BuffercreateSafe(long address, int capacity) intdesc_set()desc_set(int value) Sets the specified value to thedesc_setfield.static SpvcMslResourceBinding2malloc()Returns a newSpvcMslResourceBinding2instance allocated withmemAlloc.malloc(int capacity) Returns a newSpvcMslResourceBinding2.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSpvcMslResourceBinding2.Bufferinstance allocated on the specifiedMemoryStack.static SpvcMslResourceBinding2malloc(MemoryStack stack) Returns a newSpvcMslResourceBinding2instance allocated on the specifiedMemoryStack.intmsl_buffer(int value) Sets the specified value to themsl_bufferfield.intmsl_sampler(int value) Sets the specified value to themsl_samplerfield.intmsl_texture(int value) Sets the specified value to themsl_texturefield.static intnbinding(long struct) Unsafe version ofbinding().static voidnbinding(long struct, int value) Unsafe version ofbinding.static intncount(long struct) Unsafe version ofcount().static voidncount(long struct, int value) Unsafe version ofcount.static intndesc_set(long struct) Unsafe version ofdesc_set().static voidndesc_set(long struct, int value) Unsafe version ofdesc_set.static intnmsl_buffer(long struct) Unsafe version ofmsl_buffer().static voidnmsl_buffer(long struct, int value) Unsafe version ofmsl_buffer.static intnmsl_sampler(long struct) Unsafe version ofmsl_sampler().static voidnmsl_sampler(long struct, int value) Unsafe version ofmsl_sampler.static intnmsl_texture(long struct) Unsafe version ofmsl_texture().static voidnmsl_texture(long struct, int value) Unsafe version ofmsl_texture.static intnstage(long struct) Unsafe version ofstage().static voidnstage(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.intsizeof()Returnssizeof(struct).intstage()stage(int value) Sets the specified value to thestagefield.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. -
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 aSpvcMslResourceBinding2instance 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<SpvcMslResourceBinding2>
-
stage
public int stage()- Returns:
- the value of the
stagefield.
-
desc_set
public int desc_set()- Returns:
- the value of the
desc_setfield.
-
binding
public int binding()- Returns:
- the value of the
bindingfield.
-
count
public int count()- Returns:
- the value of the
countfield.
-
msl_buffer
public int msl_buffer()- Returns:
- the value of the
msl_bufferfield.
-
msl_texture
public int msl_texture()- Returns:
- the value of the
msl_texturefield.
-
msl_sampler
public int msl_sampler()- Returns:
- the value of the
msl_samplerfield.
-
stage
Sets the specified value to thestagefield. -
desc_set
Sets the specified value to thedesc_setfield. -
binding
Sets the specified value to thebindingfield. -
count
Sets the specified value to thecountfield. -
msl_buffer
Sets the specified value to themsl_bufferfield. -
msl_texture
Sets the specified value to themsl_texturefield. -
msl_sampler
Sets the specified value to themsl_samplerfield. -
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 newSpvcMslResourceBinding2instance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslResourceBinding2instance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcMslResourceBinding2instance allocated withBufferUtils. -
create
Returns a newSpvcMslResourceBinding2instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslResourceBinding2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcMslResourceBinding2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcMslResourceBinding2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcMslResourceBinding2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslResourceBinding2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcMslResourceBinding2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcMslResourceBinding2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcMslResourceBinding2.Bufferinstance allocated on the specifiedMemoryStackand 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.
-