public class ShadercSPVCMSLResourceBinding
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct shaderc_spvc_msl_resource_binding {
shaderc_spvc_execution_model stage;
uint32_t desc_set;
uint32_t binding;
uint32_t msl_buffer;
uint32_t msl_texture;
uint32_t msl_sampler;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ShadercSPVCMSLResourceBinding.Buffer
An array of
ShadercSPVCMSLResourceBinding structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BINDING
The struct member offsets.
|
static int |
DESC_SET
The struct member offsets.
|
static int |
MSL_BUFFER
The struct member offsets.
|
static int |
MSL_SAMPLER
The struct member offsets.
|
static int |
MSL_TEXTURE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STAGE
The struct member offsets.
|
| Constructor and Description |
|---|
ShadercSPVCMSLResourceBinding(java.nio.ByteBuffer container)
Creates a
ShadercSPVCMSLResourceBinding instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
binding()
Returns the value of the
binding field. |
ShadercSPVCMSLResourceBinding |
binding(int value)
Sets the specified value to the
binding field. |
static ShadercSPVCMSLResourceBinding |
calloc()
Returns a new
ShadercSPVCMSLResourceBinding instance allocated with memCalloc. |
static ShadercSPVCMSLResourceBinding.Buffer |
calloc(int capacity)
Returns a new
ShadercSPVCMSLResourceBinding.Buffer instance allocated with memCalloc. |
static ShadercSPVCMSLResourceBinding |
callocStack()
Returns a new
ShadercSPVCMSLResourceBinding instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ShadercSPVCMSLResourceBinding.Buffer |
callocStack(int capacity)
Returns a new
ShadercSPVCMSLResourceBinding.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ShadercSPVCMSLResourceBinding.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ShadercSPVCMSLResourceBinding.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ShadercSPVCMSLResourceBinding |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ShadercSPVCMSLResourceBinding instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ShadercSPVCMSLResourceBinding |
create()
Returns a new
ShadercSPVCMSLResourceBinding instance allocated with BufferUtils. |
static ShadercSPVCMSLResourceBinding.Buffer |
create(int capacity)
Returns a new
ShadercSPVCMSLResourceBinding.Buffer instance allocated with BufferUtils. |
static ShadercSPVCMSLResourceBinding |
create(long address)
Returns a new
ShadercSPVCMSLResourceBinding instance for the specified memory address. |
static ShadercSPVCMSLResourceBinding.Buffer |
create(long address,
int capacity)
Create a
ShadercSPVCMSLResourceBinding.Buffer instance at the specified memory. |
static ShadercSPVCMSLResourceBinding |
createSafe(long address)
|
static ShadercSPVCMSLResourceBinding.Buffer |
createSafe(long address,
int capacity)
|
int |
desc_set()
Returns the value of the
desc_set field. |
ShadercSPVCMSLResourceBinding |
desc_set(int value)
Sets the specified value to the
desc_set field. |
static ShadercSPVCMSLResourceBinding |
malloc()
Returns a new
ShadercSPVCMSLResourceBinding instance allocated with memAlloc. |
static ShadercSPVCMSLResourceBinding.Buffer |
malloc(int capacity)
Returns a new
ShadercSPVCMSLResourceBinding.Buffer instance allocated with memAlloc. |
static ShadercSPVCMSLResourceBinding |
mallocStack()
Returns a new
ShadercSPVCMSLResourceBinding instance allocated on the thread-local MemoryStack. |
static ShadercSPVCMSLResourceBinding.Buffer |
mallocStack(int capacity)
Returns a new
ShadercSPVCMSLResourceBinding.Buffer instance allocated on the thread-local MemoryStack. |
static ShadercSPVCMSLResourceBinding.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ShadercSPVCMSLResourceBinding.Buffer instance allocated on the specified MemoryStack. |
static ShadercSPVCMSLResourceBinding |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ShadercSPVCMSLResourceBinding instance allocated on the specified MemoryStack. |
int |
msl_buffer()
Returns the value of the
msl_buffer field. |
ShadercSPVCMSLResourceBinding |
msl_buffer(int value)
Sets the specified value to the
msl_buffer field. |
int |
msl_sampler()
Returns the value of the
msl_sampler field. |
ShadercSPVCMSLResourceBinding |
msl_sampler(int value)
Sets the specified value to the
msl_sampler field. |
int |
msl_texture()
Returns the value of the
msl_texture field. |
ShadercSPVCMSLResourceBinding |
msl_texture(int value)
Sets the specified value to the
msl_texture field. |
static int |
nbinding(long struct)
Unsafe version of
binding(). |
static void |
nbinding(long struct,
int value)
Unsafe version of
binding. |
static int |
ndesc_set(long struct)
Unsafe version of
desc_set(). |
static void |
ndesc_set(long struct,
int value)
Unsafe version of
desc_set. |
static int |
nmsl_buffer(long struct)
Unsafe version of
msl_buffer(). |
static void |
nmsl_buffer(long struct,
int value)
Unsafe version of
msl_buffer. |
static int |
nmsl_sampler(long struct)
Unsafe version of
msl_sampler(). |
static void |
nmsl_sampler(long struct,
int value)
Unsafe version of
msl_sampler. |
static int |
nmsl_texture(long struct)
Unsafe version of
msl_texture(). |
static void |
nmsl_texture(long struct,
int value)
Unsafe version of
msl_texture. |
static int |
nstage(long struct)
Unsafe version of
stage(). |
static void |
nstage(long struct,
int value)
Unsafe version of
stage. |
ShadercSPVCMSLResourceBinding |
set(int stage,
int desc_set,
int binding,
int msl_buffer,
int msl_texture,
int msl_sampler)
Initializes this struct with the specified values.
|
ShadercSPVCMSLResourceBinding |
set(ShadercSPVCMSLResourceBinding src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
stage()
Returns the value of the
stage field. |
ShadercSPVCMSLResourceBinding |
stage(int value)
Sets the specified value to the
stage field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STAGE
public static final int DESC_SET
public static final int BINDING
public static final int MSL_BUFFER
public static final int MSL_TEXTURE
public static final int MSL_SAMPLER
public ShadercSPVCMSLResourceBinding(java.nio.ByteBuffer container)
ShadercSPVCMSLResourceBinding instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int stage()
stage field.public int desc_set()
desc_set field.public int binding()
binding field.public int msl_buffer()
msl_buffer field.public int msl_texture()
msl_texture field.public int msl_sampler()
msl_sampler field.public ShadercSPVCMSLResourceBinding stage(int value)
stage field.public ShadercSPVCMSLResourceBinding desc_set(int value)
desc_set field.public ShadercSPVCMSLResourceBinding binding(int value)
binding field.public ShadercSPVCMSLResourceBinding msl_buffer(int value)
msl_buffer field.public ShadercSPVCMSLResourceBinding msl_texture(int value)
msl_texture field.public ShadercSPVCMSLResourceBinding msl_sampler(int value)
msl_sampler field.public ShadercSPVCMSLResourceBinding set(int stage, int desc_set, int binding, int msl_buffer, int msl_texture, int msl_sampler)
public ShadercSPVCMSLResourceBinding set(ShadercSPVCMSLResourceBinding src)
src - the source structpublic static ShadercSPVCMSLResourceBinding malloc()
ShadercSPVCMSLResourceBinding instance allocated with memAlloc. The instance must be explicitly freed.public static ShadercSPVCMSLResourceBinding calloc()
ShadercSPVCMSLResourceBinding instance allocated with memCalloc. The instance must be explicitly freed.public static ShadercSPVCMSLResourceBinding create()
ShadercSPVCMSLResourceBinding instance allocated with BufferUtils.public static ShadercSPVCMSLResourceBinding create(long address)
ShadercSPVCMSLResourceBinding instance for the specified memory address.@Nullable public static ShadercSPVCMSLResourceBinding createSafe(long address)
public static ShadercSPVCMSLResourceBinding.Buffer malloc(int capacity)
ShadercSPVCMSLResourceBinding.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ShadercSPVCMSLResourceBinding.Buffer calloc(int capacity)
ShadercSPVCMSLResourceBinding.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ShadercSPVCMSLResourceBinding.Buffer create(int capacity)
ShadercSPVCMSLResourceBinding.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ShadercSPVCMSLResourceBinding.Buffer create(long address, int capacity)
ShadercSPVCMSLResourceBinding.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ShadercSPVCMSLResourceBinding.Buffer createSafe(long address, int capacity)
public static ShadercSPVCMSLResourceBinding mallocStack()
ShadercSPVCMSLResourceBinding instance allocated on the thread-local MemoryStack.public static ShadercSPVCMSLResourceBinding callocStack()
ShadercSPVCMSLResourceBinding instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ShadercSPVCMSLResourceBinding mallocStack(org.lwjgl.system.MemoryStack stack)
ShadercSPVCMSLResourceBinding instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ShadercSPVCMSLResourceBinding callocStack(org.lwjgl.system.MemoryStack stack)
ShadercSPVCMSLResourceBinding instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ShadercSPVCMSLResourceBinding.Buffer mallocStack(int capacity)
ShadercSPVCMSLResourceBinding.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ShadercSPVCMSLResourceBinding.Buffer callocStack(int capacity)
ShadercSPVCMSLResourceBinding.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ShadercSPVCMSLResourceBinding.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ShadercSPVCMSLResourceBinding.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ShadercSPVCMSLResourceBinding.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ShadercSPVCMSLResourceBinding.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nstage(long struct)
stage().public static int ndesc_set(long struct)
desc_set().public static int nbinding(long struct)
binding().public static int nmsl_buffer(long struct)
msl_buffer().public static int nmsl_texture(long struct)
msl_texture().public static int nmsl_sampler(long struct)
msl_sampler().public static void nstage(long struct,
int value)
stage.public static void ndesc_set(long struct,
int value)
desc_set.public static void nbinding(long struct,
int value)
binding.public static void nmsl_buffer(long struct,
int value)
msl_buffer.public static void nmsl_texture(long struct,
int value)
msl_texture.public static void nmsl_sampler(long struct,
int value)
msl_sampler.Copyright LWJGL. All Rights Reserved. License terms.