After compilation, it is possible to query whether or not this location was used. If vecsize is nonzero, it must be greater than or equal to
the vecsize declared in the shader, or behavior is undefined.
Deprecated; use spvc_msl_shader_interface_var_2.
struct spvc_msl_shader_input {
unsigned location;
spvc_msl_vertex_format format;
SpvBuiltIn builtin;
unsigned vecsize;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | SpvcMslShaderInput.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BUILTIN
The struct member offsets. |
| public static final int | FORMAT
The struct member offsets. |
| public static final int | LOCATION
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VECSIZE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | SpvcMslShaderInput(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public SpvcMslShaderInput | |
| public static SpvcMslShaderInput | |
| public static SpvcMslShaderInput. | calloc(int
the buffer capacity capacity)Returns a new |
| public static SpvcMslShaderInput | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static SpvcMslShaderInput. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected SpvcMslShaderInput | 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 SpvcMslShaderInput | |
| public static SpvcMslShaderInput | |
| public static SpvcMslShaderInput. | create(int
the buffer capacity capacity)Returns a new |
| public static SpvcMslShaderInput. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static SpvcMslShaderInput | |
| public static SpvcMslShaderInput. | |
| public int | |
| public SpvcMslShaderInput | |
| public int | |
| public SpvcMslShaderInput | |
| public static SpvcMslShaderInput | |
| public static SpvcMslShaderInput. | malloc(int
the buffer capacity capacity)Returns a new |
| public static SpvcMslShaderInput | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static SpvcMslShaderInput. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| 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 SpvcMslShaderInput | set(int location, int format, int builtin, int vecsize)
Initializes this struct with the specified values. |
| public SpvcMslShaderInput | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public SpvcMslShaderInput |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BUILTIN | back to summary |
|---|---|
| public static final int BUILTIN The struct member offsets. | |
| FORMAT | back to summary |
|---|---|
| public static final int FORMAT The struct member offsets. | |
| LOCATION | back to summary |
|---|---|
| public static final int LOCATION The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VECSIZE | back to summary |
|---|---|
| public static final int VECSIZE The struct member offsets. | |
| SpvcMslShaderInput | back to summary |
|---|---|
| protected SpvcMslShaderInput(long address, ByteBuffer container) | |
| SpvcMslShaderInput | back to summary |
|---|---|
| public SpvcMslShaderInput(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| builtin | back to summary |
|---|---|
public int builtin()
| |
| builtin | back to summary |
|---|---|
| public SpvcMslShaderInput builtin(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static SpvcMslShaderInput calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static SpvcMslShaderInput. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static SpvcMslShaderInput calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static SpvcMslShaderInput. Returns a new
| |
| create | back to summary |
|---|---|
| protected SpvcMslShaderInput create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static SpvcMslShaderInput create() Returns a new | |
| create | back to summary |
|---|---|
| public static SpvcMslShaderInput create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static SpvcMslShaderInput. Returns a new
| |
| create | back to summary |
|---|---|
| public static SpvcMslShaderInput. Create a
| |
| createSafe | back to summary |
|---|---|
| public static SpvcMslShaderInput createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static SpvcMslShaderInput. Like
| |
| format | back to summary |
|---|---|
public int format()
| |
| format | back to summary |
|---|---|
| public SpvcMslShaderInput format(int value) Sets the specified value to the | |
| location | back to summary |
|---|---|
public int location()
| |
| location | back to summary |
|---|---|
| public SpvcMslShaderInput location(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static SpvcMslShaderInput malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static SpvcMslShaderInput. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static SpvcMslShaderInput malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static SpvcMslShaderInput. Returns a new
| |
| nbuiltin | back to summary |
|---|---|
| public static int nbuiltin(long struct) Unsafe version of | |
| nbuiltin | back to summary |
|---|---|
| public static void nbuiltin(long struct, int value) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static int nformat(long struct) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static void nformat(long struct, int value) Unsafe version of | |
| nlocation | back to summary |
|---|---|
| public static int nlocation(long struct) Unsafe version of | |
| nlocation | back to summary |
|---|---|
| public static void nlocation(long struct, int value) Unsafe version of | |
| nvecsize | back to summary |
|---|---|
| public static int nvecsize(long struct) Unsafe version of | |
| nvecsize | back to summary |
|---|---|
| public static void nvecsize(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public SpvcMslShaderInput set(int location, int format, int builtin, int vecsize) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public SpvcMslShaderInput set(SpvcMslShaderInput src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| vecsize | back to summary |
|---|---|
public int vecsize()
| |
| vecsize | back to summary |
|---|---|
| public SpvcMslShaderInput vecsize(int value) Sets the specified value to the | |
SpvcMslShaderInput structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final SpvcMslShaderInput |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public SpvcMslShaderInput. | |
| public int | |
| public SpvcMslShaderInput. | |
| protected SpvcMslShaderInput | |
| public int | |
| public SpvcMslShaderInput. | |
| protected SpvcMslShaderInput. | |
| public int | |
| public SpvcMslShaderInput. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final SpvcMslShaderInput 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) | |
| builtin | back to summary |
|---|---|
public int builtin()
| |
| builtin | back to summary |
|---|---|
| public SpvcMslShaderInput. Sets the specified value to the | |
| format | back to summary |
|---|---|
public int format()
| |
| format | back to summary |
|---|---|
| public SpvcMslShaderInput. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected SpvcMslShaderInput getElementFactory() Implements abstract org.
| |
| location | back to summary |
|---|---|
public int location()
| |
| location | back to summary |
|---|---|
| public SpvcMslShaderInput. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected SpvcMslShaderInput. Implements abstract org.
| |
| vecsize | back to summary |
|---|---|
public int vecsize()
| |
| vecsize | back to summary |
|---|---|
| public SpvcMslShaderInput. Sets the specified value to the | |