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.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 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
ConstructorsConstructorDescriptionSpvcMslShaderInput(ByteBuffer container) Creates aSpvcMslShaderInputinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbuiltin()builtin(int value) Sets the specified value to thebuiltinfield.static SpvcMslShaderInputcalloc()Returns a newSpvcMslShaderInputinstance allocated withmemCalloc.static SpvcMslShaderInput.Buffercalloc(int capacity) Returns a newSpvcMslShaderInput.Bufferinstance allocated withmemCalloc.static SpvcMslShaderInput.Buffercalloc(int capacity, MemoryStack stack) Returns a newSpvcMslShaderInput.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslShaderInputcalloc(MemoryStack stack) Returns a newSpvcMslShaderInputinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslShaderInputcreate()Returns a newSpvcMslShaderInputinstance allocated withBufferUtils.static SpvcMslShaderInput.Buffercreate(int capacity) Returns a newSpvcMslShaderInput.Bufferinstance allocated withBufferUtils.static SpvcMslShaderInputcreate(long address) Returns a newSpvcMslShaderInputinstance for the specified memory address.static SpvcMslShaderInput.Buffercreate(long address, int capacity) Create aSpvcMslShaderInput.Bufferinstance at the specified memory.static @Nullable SpvcMslShaderInputcreateSafe(long address) static @Nullable SpvcMslShaderInput.BuffercreateSafe(long address, int capacity) intformat()format(int value) Sets the specified value to theformatfield.intlocation()location(int value) Sets the specified value to thelocationfield.static SpvcMslShaderInputmalloc()Returns a newSpvcMslShaderInputinstance allocated withmemAlloc.static SpvcMslShaderInput.Buffermalloc(int capacity) Returns a newSpvcMslShaderInput.Bufferinstance allocated withmemAlloc.static SpvcMslShaderInput.Buffermalloc(int capacity, MemoryStack stack) Returns a newSpvcMslShaderInput.Bufferinstance allocated on the specifiedMemoryStack.static SpvcMslShaderInputmalloc(MemoryStack stack) Returns a newSpvcMslShaderInputinstance allocated on the specifiedMemoryStack.static intnbuiltin(long struct) Unsafe version ofbuiltin().static voidnbuiltin(long struct, int value) Unsafe version ofbuiltin.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static intnlocation(long struct) Unsafe version oflocation().static voidnlocation(long struct, int value) Unsafe version oflocation.static intnvecsize(long struct) Unsafe version ofvecsize().static voidnvecsize(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.intsizeof()Returnssizeof(struct).intvecsize()vecsize(int value) Sets the specified value to thevecsizefield.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. -
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 aSpvcMslShaderInputinstance 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<SpvcMslShaderInput>
-
location
public int location()- Returns:
- the value of the
locationfield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
builtin
public int builtin()- Returns:
- the value of the
builtinfield.
-
vecsize
public int vecsize()- Returns:
- the value of the
vecsizefield.
-
location
Sets the specified value to thelocationfield. -
format
Sets the specified value to theformatfield. -
builtin
Sets the specified value to thebuiltinfield. -
vecsize
Sets the specified value to thevecsizefield. -
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 newSpvcMslShaderInputinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslShaderInputinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcMslShaderInputinstance allocated withBufferUtils. -
create
Returns a newSpvcMslShaderInputinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslShaderInput.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcMslShaderInput.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcMslShaderInput.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcMslShaderInput.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslShaderInputinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcMslShaderInputinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcMslShaderInput.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcMslShaderInput.Bufferinstance allocated on the specifiedMemoryStackand 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.
-