Package org.lwjgl.util.spvc
Class SpvcMslResourceBinding
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class SpvcMslResourceBinding
extends Struct<SpvcMslResourceBinding>
implements NativeResource
struct spvc_msl_resource_binding {
SpvExecutionModel stage;
unsigned int desc_set;
unsigned int binding;
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 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
ConstructorsConstructorDescriptionSpvcMslResourceBinding(ByteBuffer container) Creates aSpvcMslResourceBindinginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbinding()binding(int value) Sets the specified value to thebindingfield.static SpvcMslResourceBindingcalloc()Returns a newSpvcMslResourceBindinginstance allocated withmemCalloc.calloc(int capacity) Returns a newSpvcMslResourceBinding.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSpvcMslResourceBinding.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslResourceBindingcalloc(MemoryStack stack) Returns a newSpvcMslResourceBindinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslResourceBindingcreate()Returns a newSpvcMslResourceBindinginstance allocated withBufferUtils.create(int capacity) Returns a newSpvcMslResourceBinding.Bufferinstance allocated withBufferUtils.static SpvcMslResourceBindingcreate(long address) Returns a newSpvcMslResourceBindinginstance for the specified memory address.create(long address, int capacity) Create aSpvcMslResourceBinding.Bufferinstance at the specified memory.static @Nullable SpvcMslResourceBindingcreateSafe(long address) static @Nullable SpvcMslResourceBinding.BuffercreateSafe(long address, int capacity) intdesc_set()desc_set(int value) Sets the specified value to thedesc_setfield.static SpvcMslResourceBindingmalloc()Returns a newSpvcMslResourceBindinginstance allocated withmemAlloc.malloc(int capacity) Returns a newSpvcMslResourceBinding.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSpvcMslResourceBinding.Bufferinstance allocated on the specifiedMemoryStack.static SpvcMslResourceBindingmalloc(MemoryStack stack) Returns a newSpvcMslResourceBindinginstance 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 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 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. -
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
-
SpvcMslResourceBinding
Creates aSpvcMslResourceBindinginstance 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<SpvcMslResourceBinding>
-
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.
-
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. -
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 SpvcMslResourceBinding set(int stage, int desc_set, int binding, 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 newSpvcMslResourceBindinginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslResourceBindinginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcMslResourceBindinginstance allocated withBufferUtils. -
create
Returns a newSpvcMslResourceBindinginstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslResourceBinding.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcMslResourceBinding.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcMslResourceBinding.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcMslResourceBinding.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslResourceBindinginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcMslResourceBindinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcMslResourceBinding.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcMslResourceBinding.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(). -
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. -
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.
-