Taken together, the stage, desc_set and binding combine to form a reference to a resource descriptor used in a particular
shading stage. If using MSL 2.0 argument buffers, the descriptor set is not marked as a discrete descriptor set, and (for iOS only) the resource is not
a storage image (sampled != 2), the binding reference we remap to will become an [[id(N)]] attribute within the "descriptor set"
argument buffer structure. For resources which are bound in the "classic" MSL 1.0 way or discrete descriptors, the remap will become a
[[buffer(N)]], [[texture(N)]] or [[sampler(N)]] depending on the resource types used.
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;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | SpvcMslResourceBinding.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BINDING
The struct member offsets. |
| public static final int | DESC_SET
The struct member offsets. |
| public static final int | MSL_BUFFER
The struct member offsets. |
| public static final int | MSL_SAMPLER
The struct member offsets. |
| public static final int | MSL_TEXTURE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STAGE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | SpvcMslResourceBinding(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public SpvcMslResourceBinding | |
| public static SpvcMslResourceBinding | |
| public static SpvcMslResourceBinding. | calloc(int
the buffer capacity capacity)Returns a new |
| public static SpvcMslResourceBinding | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static SpvcMslResourceBinding. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected SpvcMslResourceBinding | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static SpvcMslResourceBinding | |
| public static SpvcMslResourceBinding | |
| public static SpvcMslResourceBinding. | create(int
the buffer capacity capacity)Returns a new |
| public static SpvcMslResourceBinding. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static SpvcMslResourceBinding | |
| public static SpvcMslResourceBinding. | |
| public int | |
| public SpvcMslResourceBinding | |
| public static SpvcMslResourceBinding | |
| public static SpvcMslResourceBinding. | malloc(int
the buffer capacity capacity)Returns a new |
| public static SpvcMslResourceBinding | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static SpvcMslResourceBinding. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | |
| public SpvcMslResourceBinding | |
| public int | |
| public SpvcMslResourceBinding | |
| public int | |
| public SpvcMslResourceBinding | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| 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. |
| public SpvcMslResourceBinding | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public SpvcMslResourceBinding |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BINDING | back to summary |
|---|---|
| public static final int BINDING The struct member offsets. | |
| DESC_SET | back to summary |
|---|---|
| public static final int DESC_SET The struct member offsets. | |
| MSL_BUFFER | back to summary |
|---|---|
| public static final int MSL_BUFFER The struct member offsets. | |
| MSL_SAMPLER | back to summary |
|---|---|
| public static final int MSL_SAMPLER The struct member offsets. | |
| MSL_TEXTURE | back to summary |
|---|---|
| public static final int MSL_TEXTURE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STAGE | back to summary |
|---|---|
| public static final int STAGE The struct member offsets. | |
| SpvcMslResourceBinding | back to summary |
|---|---|
| protected SpvcMslResourceBinding(long address, ByteBuffer container) | |
| SpvcMslResourceBinding | back to summary |
|---|---|
| public SpvcMslResourceBinding(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| binding | back to summary |
|---|---|
public int binding()
| |
| binding | back to summary |
|---|---|
| public SpvcMslResourceBinding binding(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static SpvcMslResourceBinding calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static SpvcMslResourceBinding. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static SpvcMslResourceBinding calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static SpvcMslResourceBinding. Returns a new
| |
| create | back to summary |
|---|---|
| protected SpvcMslResourceBinding create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static SpvcMslResourceBinding create() Returns a new | |
| create | back to summary |
|---|---|
| public static SpvcMslResourceBinding create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static SpvcMslResourceBinding. Returns a new
| |
| create | back to summary |
|---|---|
| public static SpvcMslResourceBinding. Create a
| |
| createSafe | back to summary |
|---|---|
| public static SpvcMslResourceBinding createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static SpvcMslResourceBinding. Like
| |
| desc_set | back to summary |
|---|---|
public int desc_set()
| |
| desc_set | back to summary |
|---|---|
| public SpvcMslResourceBinding desc_set(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static SpvcMslResourceBinding malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static SpvcMslResourceBinding. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static SpvcMslResourceBinding malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static SpvcMslResourceBinding. Returns a new
| |
| msl_buffer | back to summary |
|---|---|
public int msl_buffer()
| |
| msl_buffer | back to summary |
|---|---|
| public SpvcMslResourceBinding msl_buffer(int value) Sets the specified value to the | |
| msl_sampler | back to summary |
|---|---|
public int msl_sampler()
| |
| msl_sampler | back to summary |
|---|---|
| public SpvcMslResourceBinding msl_sampler(int value) Sets the specified value to the | |
| msl_texture | back to summary |
|---|---|
public int msl_texture()
| |
| msl_texture | back to summary |
|---|---|
| public SpvcMslResourceBinding msl_texture(int value) Sets the specified value to the | |
| nbinding | back to summary |
|---|---|
| public static int nbinding(long struct) Unsafe version of | |
| nbinding | back to summary |
|---|---|
| public static void nbinding(long struct, int value) Unsafe version of | |
| ndesc_set | back to summary |
|---|---|
| public static int ndesc_set(long struct) Unsafe version of | |
| ndesc_set | back to summary |
|---|---|
| public static void ndesc_set(long struct, int value) Unsafe version of | |
| nmsl_buffer | back to summary |
|---|---|
| public static int nmsl_buffer(long struct) Unsafe version of | |
| nmsl_buffer | back to summary |
|---|---|
| public static void nmsl_buffer(long struct, int value) Unsafe version of | |
| nmsl_sampler | back to summary |
|---|---|
| public static int nmsl_sampler(long struct) Unsafe version of | |
| nmsl_sampler | back to summary |
|---|---|
| public static void nmsl_sampler(long struct, int value) Unsafe version of | |
| nmsl_texture | back to summary |
|---|---|
| public static int nmsl_texture(long struct) Unsafe version of | |
| nmsl_texture | back to summary |
|---|---|
| public static void nmsl_texture(long struct, int value) Unsafe version of | |
| nstage | back to summary |
|---|---|
| public static int nstage(long struct) Unsafe version of | |
| nstage | back to summary |
|---|---|
| public static void nstage(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| 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 | back to summary |
|---|---|
| public SpvcMslResourceBinding set(SpvcMslResourceBinding src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| stage | back to summary |
|---|---|
public int stage()
| |
| stage | back to summary |
|---|---|
| public SpvcMslResourceBinding stage(int value) Sets the specified value to the | |
SpvcMslResourceBinding structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final SpvcMslResourceBinding |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public SpvcMslResourceBinding. | |
| public int | |
| public SpvcMslResourceBinding. | |
| protected SpvcMslResourceBinding | |
| public int | |
| public SpvcMslResourceBinding. | |
| public int | |
| public SpvcMslResourceBinding. | |
| public int | |
| public SpvcMslResourceBinding. | |
| protected SpvcMslResourceBinding. | |
| public int | |
| public SpvcMslResourceBinding. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final SpvcMslResourceBinding ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| binding | back to summary |
|---|---|
public int binding()
| |
| binding | back to summary |
|---|---|
| public SpvcMslResourceBinding. Sets the specified value to the | |
| desc_set | back to summary |
|---|---|
public int desc_set()
| |
| desc_set | back to summary |
|---|---|
| public SpvcMslResourceBinding. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected SpvcMslResourceBinding getElementFactory() Implements abstract org.
| |
| msl_buffer | back to summary |
|---|---|
public int msl_buffer()
| |
| msl_buffer | back to summary |
|---|---|
| public SpvcMslResourceBinding. Sets the specified value to the | |
| msl_sampler | back to summary |
|---|---|
public int msl_sampler()
| |
| msl_sampler | back to summary |
|---|---|
| public SpvcMslResourceBinding. Sets the specified value to the | |
| msl_texture | back to summary |
|---|---|
public int msl_texture()
| |
| msl_texture | back to summary |
|---|---|
| public SpvcMslResourceBinding. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected SpvcMslResourceBinding. Implements abstract org.
| |
| stage | back to summary |
|---|---|
public int stage()
| |
| stage | back to summary |
|---|---|
| public SpvcMslResourceBinding. Sets the specified value to the | |