Package org.lwjgl.vulkan
Class VkTraceRaysIndirectCommand2KHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkTraceRaysIndirectCommand2KHR>
org.lwjgl.vulkan.VkTraceRaysIndirectCommand2KHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkTraceRaysIndirectCommand2KHR
extends Struct<VkTraceRaysIndirectCommand2KHR>
implements NativeResource
struct VkTraceRaysIndirectCommand2KHR {
VkDeviceAddress raygenShaderRecordAddress;
VkDeviceSize raygenShaderRecordSize;
VkDeviceAddress missShaderBindingTableAddress;
VkDeviceSize missShaderBindingTableSize;
VkDeviceSize missShaderBindingTableStride;
VkDeviceAddress hitShaderBindingTableAddress;
VkDeviceSize hitShaderBindingTableSize;
VkDeviceSize hitShaderBindingTableStride;
VkDeviceAddress callableShaderBindingTableAddress;
VkDeviceSize callableShaderBindingTableSize;
VkDeviceSize callableShaderBindingTableStride;
uint32_t width;
uint32_t height;
uint32_t depth;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofVkTraceRaysIndirectCommand2KHR
structs.Nested 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 member offsets.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 member offsets.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 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
ConstructorsConstructorDescriptionVkTraceRaysIndirectCommand2KHR
(ByteBuffer container) Creates aVkTraceRaysIndirectCommand2KHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
callableShaderBindingTableAddress
(long value) Sets the specified value to thecallableShaderBindingTableAddress
field.long
callableShaderBindingTableSize
(long value) Sets the specified value to thecallableShaderBindingTableSize
field.long
callableShaderBindingTableStride
(long value) Sets the specified value to thecallableShaderBindingTableStride
field.calloc()
Returns a newVkTraceRaysIndirectCommand2KHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkTraceRaysIndirectCommand2KHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkTraceRaysIndirectCommand2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkTraceRaysIndirectCommand2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkTraceRaysIndirectCommand2KHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkTraceRaysIndirectCommand2KHR.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkTraceRaysIndirectCommand2KHR
instance for the specified memory address.create
(long address, int capacity) Create aVkTraceRaysIndirectCommand2KHR.Buffer
instance at the specified memory.static @Nullable VkTraceRaysIndirectCommand2KHR
createSafe
(long address) static @Nullable VkTraceRaysIndirectCommand2KHR.Buffer
createSafe
(long address, int capacity) int
depth()
depth
(int value) Sets the specified value to thedepth
field.int
height()
height
(int value) Sets the specified value to theheight
field.long
hitShaderBindingTableAddress
(long value) Sets the specified value to thehitShaderBindingTableAddress
field.long
hitShaderBindingTableSize
(long value) Sets the specified value to thehitShaderBindingTableSize
field.long
hitShaderBindingTableStride
(long value) Sets the specified value to thehitShaderBindingTableStride
field.malloc()
Returns a newVkTraceRaysIndirectCommand2KHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkTraceRaysIndirectCommand2KHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkTraceRaysIndirectCommand2KHR.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkTraceRaysIndirectCommand2KHR
instance allocated on the specifiedMemoryStack
.long
missShaderBindingTableAddress
(long value) Sets the specified value to themissShaderBindingTableAddress
field.long
missShaderBindingTableSize
(long value) Sets the specified value to themissShaderBindingTableSize
field.long
missShaderBindingTableStride
(long value) Sets the specified value to themissShaderBindingTableStride
field.static long
ncallableShaderBindingTableAddress
(long struct) Unsafe version ofcallableShaderBindingTableAddress()
.static void
ncallableShaderBindingTableAddress
(long struct, long value) Unsafe version ofcallableShaderBindingTableAddress
.static long
ncallableShaderBindingTableSize
(long struct) Unsafe version ofcallableShaderBindingTableSize()
.static void
ncallableShaderBindingTableSize
(long struct, long value) Unsafe version ofcallableShaderBindingTableSize
.static long
ncallableShaderBindingTableStride
(long struct) Unsafe version ofcallableShaderBindingTableStride()
.static void
ncallableShaderBindingTableStride
(long struct, long value) Unsafe version ofcallableShaderBindingTableStride
.static int
ndepth
(long struct) Unsafe version ofdepth()
.static void
ndepth
(long struct, int value) Unsafe version ofdepth
.static int
nheight
(long struct) Unsafe version ofheight()
.static void
nheight
(long struct, int value) Unsafe version ofheight
.static long
nhitShaderBindingTableAddress
(long struct) Unsafe version ofhitShaderBindingTableAddress()
.static void
nhitShaderBindingTableAddress
(long struct, long value) Unsafe version ofhitShaderBindingTableAddress
.static long
nhitShaderBindingTableSize
(long struct) Unsafe version ofhitShaderBindingTableSize()
.static void
nhitShaderBindingTableSize
(long struct, long value) Unsafe version ofhitShaderBindingTableSize
.static long
nhitShaderBindingTableStride
(long struct) Unsafe version ofhitShaderBindingTableStride()
.static void
nhitShaderBindingTableStride
(long struct, long value) Unsafe version ofhitShaderBindingTableStride
.static long
nmissShaderBindingTableAddress
(long struct) Unsafe version ofmissShaderBindingTableAddress()
.static void
nmissShaderBindingTableAddress
(long struct, long value) Unsafe version ofmissShaderBindingTableAddress
.static long
nmissShaderBindingTableSize
(long struct) Unsafe version ofmissShaderBindingTableSize()
.static void
nmissShaderBindingTableSize
(long struct, long value) Unsafe version ofmissShaderBindingTableSize
.static long
nmissShaderBindingTableStride
(long struct) Unsafe version ofmissShaderBindingTableStride()
.static void
nmissShaderBindingTableStride
(long struct, long value) Unsafe version ofmissShaderBindingTableStride
.static long
nraygenShaderRecordAddress
(long struct) Unsafe version ofraygenShaderRecordAddress()
.static void
nraygenShaderRecordAddress
(long struct, long value) Unsafe version ofraygenShaderRecordAddress
.static long
nraygenShaderRecordSize
(long struct) Unsafe version ofraygenShaderRecordSize()
.static void
nraygenShaderRecordSize
(long struct, long value) Unsafe version ofraygenShaderRecordSize
.static int
nwidth
(long struct) Unsafe version ofwidth()
.static void
nwidth
(long struct, int value) Unsafe version ofwidth
.long
raygenShaderRecordAddress
(long value) Sets the specified value to theraygenShaderRecordAddress
field.long
raygenShaderRecordSize
(long value) Sets the specified value to theraygenShaderRecordSize
field.set
(long raygenShaderRecordAddress, long raygenShaderRecordSize, long missShaderBindingTableAddress, long missShaderBindingTableSize, long missShaderBindingTableStride, long hitShaderBindingTableAddress, long hitShaderBindingTableSize, long hitShaderBindingTableStride, long callableShaderBindingTableAddress, long callableShaderBindingTableSize, long callableShaderBindingTableStride, int width, int height, int depth) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
width()
width
(int value) Sets the specified value to thewidth
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. -
RAYGENSHADERRECORDADDRESS
public static final int RAYGENSHADERRECORDADDRESSThe struct member offsets. -
RAYGENSHADERRECORDSIZE
public static final int RAYGENSHADERRECORDSIZEThe struct member offsets. -
MISSSHADERBINDINGTABLEADDRESS
public static final int MISSSHADERBINDINGTABLEADDRESSThe struct member offsets. -
MISSSHADERBINDINGTABLESIZE
public static final int MISSSHADERBINDINGTABLESIZEThe struct member offsets. -
MISSSHADERBINDINGTABLESTRIDE
public static final int MISSSHADERBINDINGTABLESTRIDEThe struct member offsets. -
HITSHADERBINDINGTABLEADDRESS
public static final int HITSHADERBINDINGTABLEADDRESSThe struct member offsets. -
HITSHADERBINDINGTABLESIZE
public static final int HITSHADERBINDINGTABLESIZEThe struct member offsets. -
HITSHADERBINDINGTABLESTRIDE
public static final int HITSHADERBINDINGTABLESTRIDEThe struct member offsets. -
CALLABLESHADERBINDINGTABLEADDRESS
public static final int CALLABLESHADERBINDINGTABLEADDRESSThe struct member offsets. -
CALLABLESHADERBINDINGTABLESIZE
public static final int CALLABLESHADERBINDINGTABLESIZEThe struct member offsets. -
CALLABLESHADERBINDINGTABLESTRIDE
public static final int CALLABLESHADERBINDINGTABLESTRIDEThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets.
-
-
Constructor Details
-
VkTraceRaysIndirectCommand2KHR
Creates aVkTraceRaysIndirectCommand2KHR
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<VkTraceRaysIndirectCommand2KHR>
-
raygenShaderRecordAddress
public long raygenShaderRecordAddress()- Returns:
- the value of the
raygenShaderRecordAddress
field.
-
raygenShaderRecordSize
public long raygenShaderRecordSize()- Returns:
- the value of the
raygenShaderRecordSize
field.
-
missShaderBindingTableAddress
public long missShaderBindingTableAddress()- Returns:
- the value of the
missShaderBindingTableAddress
field.
-
missShaderBindingTableSize
public long missShaderBindingTableSize()- Returns:
- the value of the
missShaderBindingTableSize
field.
-
missShaderBindingTableStride
public long missShaderBindingTableStride()- Returns:
- the value of the
missShaderBindingTableStride
field.
-
hitShaderBindingTableAddress
public long hitShaderBindingTableAddress()- Returns:
- the value of the
hitShaderBindingTableAddress
field.
-
hitShaderBindingTableSize
public long hitShaderBindingTableSize()- Returns:
- the value of the
hitShaderBindingTableSize
field.
-
hitShaderBindingTableStride
public long hitShaderBindingTableStride()- Returns:
- the value of the
hitShaderBindingTableStride
field.
-
callableShaderBindingTableAddress
public long callableShaderBindingTableAddress()- Returns:
- the value of the
callableShaderBindingTableAddress
field.
-
callableShaderBindingTableSize
public long callableShaderBindingTableSize()- Returns:
- the value of the
callableShaderBindingTableSize
field.
-
callableShaderBindingTableStride
public long callableShaderBindingTableStride()- Returns:
- the value of the
callableShaderBindingTableStride
field.
-
width
public int width()- Returns:
- the value of the
width
field.
-
height
public int height()- Returns:
- the value of the
height
field.
-
depth
public int depth()- Returns:
- the value of the
depth
field.
-
raygenShaderRecordAddress
Sets the specified value to theraygenShaderRecordAddress
field. -
raygenShaderRecordSize
Sets the specified value to theraygenShaderRecordSize
field. -
missShaderBindingTableAddress
Sets the specified value to themissShaderBindingTableAddress
field. -
missShaderBindingTableSize
Sets the specified value to themissShaderBindingTableSize
field. -
missShaderBindingTableStride
Sets the specified value to themissShaderBindingTableStride
field. -
hitShaderBindingTableAddress
Sets the specified value to thehitShaderBindingTableAddress
field. -
hitShaderBindingTableSize
Sets the specified value to thehitShaderBindingTableSize
field. -
hitShaderBindingTableStride
Sets the specified value to thehitShaderBindingTableStride
field. -
callableShaderBindingTableAddress
Sets the specified value to thecallableShaderBindingTableAddress
field. -
callableShaderBindingTableSize
Sets the specified value to thecallableShaderBindingTableSize
field. -
callableShaderBindingTableStride
Sets the specified value to thecallableShaderBindingTableStride
field. -
width
Sets the specified value to thewidth
field. -
height
Sets the specified value to theheight
field. -
depth
Sets the specified value to thedepth
field. -
set
public VkTraceRaysIndirectCommand2KHR set(long raygenShaderRecordAddress, long raygenShaderRecordSize, long missShaderBindingTableAddress, long missShaderBindingTableSize, long missShaderBindingTableStride, long hitShaderBindingTableAddress, long hitShaderBindingTableSize, long hitShaderBindingTableStride, long callableShaderBindingTableAddress, long callableShaderBindingTableSize, long callableShaderBindingTableStride, int width, int height, int depth) 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 newVkTraceRaysIndirectCommand2KHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkTraceRaysIndirectCommand2KHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkTraceRaysIndirectCommand2KHR
instance allocated withBufferUtils
. -
create
Returns a newVkTraceRaysIndirectCommand2KHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkTraceRaysIndirectCommand2KHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkTraceRaysIndirectCommand2KHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkTraceRaysIndirectCommand2KHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkTraceRaysIndirectCommand2KHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable VkTraceRaysIndirectCommand2KHR.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkTraceRaysIndirectCommand2KHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkTraceRaysIndirectCommand2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkTraceRaysIndirectCommand2KHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkTraceRaysIndirectCommand2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nraygenShaderRecordAddress
public static long nraygenShaderRecordAddress(long struct) Unsafe version ofraygenShaderRecordAddress()
. -
nraygenShaderRecordSize
public static long nraygenShaderRecordSize(long struct) Unsafe version ofraygenShaderRecordSize()
. -
nmissShaderBindingTableAddress
public static long nmissShaderBindingTableAddress(long struct) Unsafe version ofmissShaderBindingTableAddress()
. -
nmissShaderBindingTableSize
public static long nmissShaderBindingTableSize(long struct) Unsafe version ofmissShaderBindingTableSize()
. -
nmissShaderBindingTableStride
public static long nmissShaderBindingTableStride(long struct) Unsafe version ofmissShaderBindingTableStride()
. -
nhitShaderBindingTableAddress
public static long nhitShaderBindingTableAddress(long struct) Unsafe version ofhitShaderBindingTableAddress()
. -
nhitShaderBindingTableSize
public static long nhitShaderBindingTableSize(long struct) Unsafe version ofhitShaderBindingTableSize()
. -
nhitShaderBindingTableStride
public static long nhitShaderBindingTableStride(long struct) Unsafe version ofhitShaderBindingTableStride()
. -
ncallableShaderBindingTableAddress
public static long ncallableShaderBindingTableAddress(long struct) Unsafe version ofcallableShaderBindingTableAddress()
. -
ncallableShaderBindingTableSize
public static long ncallableShaderBindingTableSize(long struct) Unsafe version ofcallableShaderBindingTableSize()
. -
ncallableShaderBindingTableStride
public static long ncallableShaderBindingTableStride(long struct) Unsafe version ofcallableShaderBindingTableStride()
. -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static int nheight(long struct) Unsafe version ofheight()
. -
ndepth
public static int ndepth(long struct) Unsafe version ofdepth()
. -
nraygenShaderRecordAddress
public static void nraygenShaderRecordAddress(long struct, long value) Unsafe version ofraygenShaderRecordAddress
. -
nraygenShaderRecordSize
public static void nraygenShaderRecordSize(long struct, long value) Unsafe version ofraygenShaderRecordSize
. -
nmissShaderBindingTableAddress
public static void nmissShaderBindingTableAddress(long struct, long value) Unsafe version ofmissShaderBindingTableAddress
. -
nmissShaderBindingTableSize
public static void nmissShaderBindingTableSize(long struct, long value) Unsafe version ofmissShaderBindingTableSize
. -
nmissShaderBindingTableStride
public static void nmissShaderBindingTableStride(long struct, long value) Unsafe version ofmissShaderBindingTableStride
. -
nhitShaderBindingTableAddress
public static void nhitShaderBindingTableAddress(long struct, long value) Unsafe version ofhitShaderBindingTableAddress
. -
nhitShaderBindingTableSize
public static void nhitShaderBindingTableSize(long struct, long value) Unsafe version ofhitShaderBindingTableSize
. -
nhitShaderBindingTableStride
public static void nhitShaderBindingTableStride(long struct, long value) Unsafe version ofhitShaderBindingTableStride
. -
ncallableShaderBindingTableAddress
public static void ncallableShaderBindingTableAddress(long struct, long value) Unsafe version ofcallableShaderBindingTableAddress
. -
ncallableShaderBindingTableSize
public static void ncallableShaderBindingTableSize(long struct, long value) Unsafe version ofcallableShaderBindingTableSize
. -
ncallableShaderBindingTableStride
public static void ncallableShaderBindingTableStride(long struct, long value) Unsafe version ofcallableShaderBindingTableStride
. -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth
. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight
. -
ndepth
public static void ndepth(long struct, int value) Unsafe version ofdepth
.
-