Package org.lwjgl.util.spvc
Class SpvcMslShaderInput
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct spvc_msl_shader_input {
unsigned location;
spvc_msl_vertex_format format;
SpvBuiltIn builtin;
unsigned vecsize;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSpvcMslShaderInput
(ByteBuffer container) Creates aSpvcMslShaderInput
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
builtin()
builtin
(int value) Sets the specified value to thebuiltin
field.static SpvcMslShaderInput
calloc()
Returns a newSpvcMslShaderInput
instance allocated withmemCalloc
.static SpvcMslShaderInput.Buffer
calloc
(int capacity) Returns a newSpvcMslShaderInput.Buffer
instance allocated withmemCalloc
.static SpvcMslShaderInput.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSpvcMslShaderInput.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcMslShaderInput
calloc
(MemoryStack stack) Returns a newSpvcMslShaderInput
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcMslShaderInput
create()
Returns a newSpvcMslShaderInput
instance allocated withBufferUtils
.static SpvcMslShaderInput.Buffer
create
(int capacity) Returns a newSpvcMslShaderInput.Buffer
instance allocated withBufferUtils
.static SpvcMslShaderInput
create
(long address) Returns a newSpvcMslShaderInput
instance for the specified memory address.static SpvcMslShaderInput.Buffer
create
(long address, int capacity) Create aSpvcMslShaderInput.Buffer
instance at the specified memory.static @Nullable SpvcMslShaderInput
createSafe
(long address) static @Nullable SpvcMslShaderInput.Buffer
createSafe
(long address, int capacity) int
format()
format
(int value) Sets the specified value to theformat
field.int
location()
location
(int value) Sets the specified value to thelocation
field.static SpvcMslShaderInput
malloc()
Returns a newSpvcMslShaderInput
instance allocated withmemAlloc
.static SpvcMslShaderInput.Buffer
malloc
(int capacity) Returns a newSpvcMslShaderInput.Buffer
instance allocated withmemAlloc
.static SpvcMslShaderInput.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSpvcMslShaderInput.Buffer
instance allocated on the specifiedMemoryStack
.static SpvcMslShaderInput
malloc
(MemoryStack stack) Returns a newSpvcMslShaderInput
instance allocated on the specifiedMemoryStack
.static int
nbuiltin
(long struct) Unsafe version ofbuiltin()
.static void
nbuiltin
(long struct, int value) Unsafe version ofbuiltin
.static int
nformat
(long struct) Unsafe version offormat()
.static void
nformat
(long struct, int value) Unsafe version offormat
.static int
nlocation
(long struct) Unsafe version oflocation()
.static void
nlocation
(long struct, int value) Unsafe version oflocation
.static int
nvecsize
(long struct) Unsafe version ofvecsize()
.static void
nvecsize
(long struct, int value) Unsafe version ofvecsize
.set
(int location, int format, int builtin, int vecsize) Initializes this struct with the specified values.set
(SpvcMslShaderInput src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
vecsize()
vecsize
(int value) Sets the specified value to thevecsize
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
LOCATION
public static final int LOCATIONThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
BUILTIN
public static final int BUILTINThe struct member offsets. -
VECSIZE
public static final int VECSIZEThe struct member offsets.
-
-
Constructor Details
-
SpvcMslShaderInput
Creates aSpvcMslShaderInput
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SpvcMslShaderInput>
-
location
public int location()- Returns:
- the value of the
location
field.
-
format
public int format()- Returns:
- the value of the
format
field.
-
builtin
public int builtin()- Returns:
- the value of the
builtin
field.
-
vecsize
public int vecsize()- Returns:
- the value of the
vecsize
field.
-
location
Sets the specified value to thelocation
field. -
format
Sets the specified value to theformat
field. -
builtin
Sets the specified value to thebuiltin
field. -
vecsize
Sets the specified value to thevecsize
field. -
set
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 newSpvcMslShaderInput
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslShaderInput
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSpvcMslShaderInput
instance allocated withBufferUtils
. -
create
Returns a newSpvcMslShaderInput
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslShaderInput.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSpvcMslShaderInput.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSpvcMslShaderInput.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSpvcMslShaderInput.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslShaderInput
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslShaderInput
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSpvcMslShaderInput.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslShaderInput.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nlocation
public static int nlocation(long struct) Unsafe version oflocation()
. -
nformat
public static int nformat(long struct) Unsafe version offormat()
. -
nbuiltin
public static int nbuiltin(long struct) Unsafe version ofbuiltin()
. -
nvecsize
public static int nvecsize(long struct) Unsafe version ofvecsize()
. -
nlocation
public static void nlocation(long struct, int value) Unsafe version oflocation
. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat
. -
nbuiltin
public static void nbuiltin(long struct, int value) Unsafe version ofbuiltin
. -
nvecsize
public static void nvecsize(long struct, int value) Unsafe version ofvecsize
.
-