Package org.lwjgl.util.spvc
Class SpvcHlslRootConstants
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct spvc_hlsl_root_constants {
unsigned int start;
unsigned int end;
unsigned int binding;
unsigned int space;
}
-
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 size in bytes.static final int
The struct member offsets.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
ConstructorsConstructorDescriptionSpvcHlslRootConstants
(ByteBuffer container) Creates aSpvcHlslRootConstants
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
binding()
binding
(int value) Sets the specified value to thebinding
field.static SpvcHlslRootConstants
calloc()
Returns a newSpvcHlslRootConstants
instance allocated withmemCalloc
.static SpvcHlslRootConstants.Buffer
calloc
(int capacity) Returns a newSpvcHlslRootConstants.Buffer
instance allocated withmemCalloc
.static SpvcHlslRootConstants.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSpvcHlslRootConstants.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcHlslRootConstants
calloc
(MemoryStack stack) Returns a newSpvcHlslRootConstants
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcHlslRootConstants
create()
Returns a newSpvcHlslRootConstants
instance allocated withBufferUtils
.static SpvcHlslRootConstants.Buffer
create
(int capacity) Returns a newSpvcHlslRootConstants.Buffer
instance allocated withBufferUtils
.static SpvcHlslRootConstants
create
(long address) Returns a newSpvcHlslRootConstants
instance for the specified memory address.static SpvcHlslRootConstants.Buffer
create
(long address, int capacity) Create aSpvcHlslRootConstants.Buffer
instance at the specified memory.static @Nullable SpvcHlslRootConstants
createSafe
(long address) static @Nullable SpvcHlslRootConstants.Buffer
createSafe
(long address, int capacity) int
end()
end
(int value) Sets the specified value to theend
field.static SpvcHlslRootConstants
malloc()
Returns a newSpvcHlslRootConstants
instance allocated withmemAlloc
.static SpvcHlslRootConstants.Buffer
malloc
(int capacity) Returns a newSpvcHlslRootConstants.Buffer
instance allocated withmemAlloc
.static SpvcHlslRootConstants.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSpvcHlslRootConstants.Buffer
instance allocated on the specifiedMemoryStack
.static SpvcHlslRootConstants
malloc
(MemoryStack stack) Returns a newSpvcHlslRootConstants
instance allocated on the specifiedMemoryStack
.static int
nbinding
(long struct) Unsafe version ofbinding()
.static void
nbinding
(long struct, int value) Unsafe version ofbinding
.static int
nend
(long struct) Unsafe version ofend()
.static void
nend
(long struct, int value) Unsafe version ofend
.static int
nspace
(long struct) Unsafe version ofspace()
.static void
nspace
(long struct, int value) Unsafe version ofspace
.static int
nstart
(long struct) Unsafe version ofstart()
.static void
nstart
(long struct, int value) Unsafe version ofstart
.set
(int start, int end, int binding, int space) Initializes this struct with the specified values.set
(SpvcHlslRootConstants src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
space()
space
(int value) Sets the specified value to thespace
field.int
start()
start
(int value) Sets the specified value to thestart
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. -
START
public static final int STARTThe struct member offsets. -
END
public static final int ENDThe struct member offsets. -
BINDING
public static final int BINDINGThe struct member offsets. -
SPACE
public static final int SPACEThe struct member offsets.
-
-
Constructor Details
-
SpvcHlslRootConstants
Creates aSpvcHlslRootConstants
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<SpvcHlslRootConstants>
-
start
public int start()- Returns:
- the value of the
start
field.
-
end
public int end()- Returns:
- the value of the
end
field.
-
binding
public int binding()- Returns:
- the value of the
binding
field.
-
space
public int space()- Returns:
- the value of the
space
field.
-
start
Sets the specified value to thestart
field. -
end
Sets the specified value to theend
field. -
binding
Sets the specified value to thebinding
field. -
space
Sets the specified value to thespace
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 newSpvcHlslRootConstants
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSpvcHlslRootConstants
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSpvcHlslRootConstants
instance allocated withBufferUtils
. -
create
Returns a newSpvcHlslRootConstants
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcHlslRootConstants.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSpvcHlslRootConstants.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSpvcHlslRootConstants.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSpvcHlslRootConstants.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcHlslRootConstants
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSpvcHlslRootConstants
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSpvcHlslRootConstants.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSpvcHlslRootConstants.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nstart
public static int nstart(long struct) Unsafe version ofstart()
. -
nend
public static int nend(long struct) Unsafe version ofend()
. -
nbinding
public static int nbinding(long struct) Unsafe version ofbinding()
. -
nspace
public static int nspace(long struct) Unsafe version ofspace()
. -
nstart
public static void nstart(long struct, int value) Unsafe version ofstart
. -
nend
public static void nend(long struct, int value) Unsafe version ofend
. -
nbinding
public static void nbinding(long struct, int value) Unsafe version ofbinding
. -
nspace
public static void nspace(long struct, int value) Unsafe version ofspace
.
-