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 classAn array ofVkTraceRaysIndirectCommand2KHRstructs.Nested 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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionVkTraceRaysIndirectCommand2KHR(ByteBuffer container) Creates aVkTraceRaysIndirectCommand2KHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongcallableShaderBindingTableAddress(long value) Sets the specified value to thecallableShaderBindingTableAddressfield.longcallableShaderBindingTableSize(long value) Sets the specified value to thecallableShaderBindingTableSizefield.longcallableShaderBindingTableStride(long value) Sets the specified value to thecallableShaderBindingTableStridefield.calloc()Returns a newVkTraceRaysIndirectCommand2KHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkTraceRaysIndirectCommand2KHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkTraceRaysIndirectCommand2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkTraceRaysIndirectCommand2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkTraceRaysIndirectCommand2KHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkTraceRaysIndirectCommand2KHR.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkTraceRaysIndirectCommand2KHRinstance for the specified memory address.create(long address, int capacity) Create aVkTraceRaysIndirectCommand2KHR.Bufferinstance at the specified memory.static @Nullable VkTraceRaysIndirectCommand2KHRcreateSafe(long address) static @Nullable VkTraceRaysIndirectCommand2KHR.BuffercreateSafe(long address, int capacity) intdepth()depth(int value) Sets the specified value to thedepthfield.intheight()height(int value) Sets the specified value to theheightfield.longhitShaderBindingTableAddress(long value) Sets the specified value to thehitShaderBindingTableAddressfield.longhitShaderBindingTableSize(long value) Sets the specified value to thehitShaderBindingTableSizefield.longhitShaderBindingTableStride(long value) Sets the specified value to thehitShaderBindingTableStridefield.malloc()Returns a newVkTraceRaysIndirectCommand2KHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkTraceRaysIndirectCommand2KHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkTraceRaysIndirectCommand2KHR.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkTraceRaysIndirectCommand2KHRinstance allocated on the specifiedMemoryStack.longmissShaderBindingTableAddress(long value) Sets the specified value to themissShaderBindingTableAddressfield.longmissShaderBindingTableSize(long value) Sets the specified value to themissShaderBindingTableSizefield.longmissShaderBindingTableStride(long value) Sets the specified value to themissShaderBindingTableStridefield.static longncallableShaderBindingTableAddress(long struct) Unsafe version ofcallableShaderBindingTableAddress().static voidncallableShaderBindingTableAddress(long struct, long value) Unsafe version ofcallableShaderBindingTableAddress.static longncallableShaderBindingTableSize(long struct) Unsafe version ofcallableShaderBindingTableSize().static voidncallableShaderBindingTableSize(long struct, long value) Unsafe version ofcallableShaderBindingTableSize.static longncallableShaderBindingTableStride(long struct) Unsafe version ofcallableShaderBindingTableStride().static voidncallableShaderBindingTableStride(long struct, long value) Unsafe version ofcallableShaderBindingTableStride.static intndepth(long struct) Unsafe version ofdepth().static voidndepth(long struct, int value) Unsafe version ofdepth.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.static longnhitShaderBindingTableAddress(long struct) Unsafe version ofhitShaderBindingTableAddress().static voidnhitShaderBindingTableAddress(long struct, long value) Unsafe version ofhitShaderBindingTableAddress.static longnhitShaderBindingTableSize(long struct) Unsafe version ofhitShaderBindingTableSize().static voidnhitShaderBindingTableSize(long struct, long value) Unsafe version ofhitShaderBindingTableSize.static longnhitShaderBindingTableStride(long struct) Unsafe version ofhitShaderBindingTableStride().static voidnhitShaderBindingTableStride(long struct, long value) Unsafe version ofhitShaderBindingTableStride.static longnmissShaderBindingTableAddress(long struct) Unsafe version ofmissShaderBindingTableAddress().static voidnmissShaderBindingTableAddress(long struct, long value) Unsafe version ofmissShaderBindingTableAddress.static longnmissShaderBindingTableSize(long struct) Unsafe version ofmissShaderBindingTableSize().static voidnmissShaderBindingTableSize(long struct, long value) Unsafe version ofmissShaderBindingTableSize.static longnmissShaderBindingTableStride(long struct) Unsafe version ofmissShaderBindingTableStride().static voidnmissShaderBindingTableStride(long struct, long value) Unsafe version ofmissShaderBindingTableStride.static longnraygenShaderRecordAddress(long struct) Unsafe version ofraygenShaderRecordAddress().static voidnraygenShaderRecordAddress(long struct, long value) Unsafe version ofraygenShaderRecordAddress.static longnraygenShaderRecordSize(long struct) Unsafe version ofraygenShaderRecordSize().static voidnraygenShaderRecordSize(long struct, long value) Unsafe version ofraygenShaderRecordSize.static intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.longraygenShaderRecordAddress(long value) Sets the specified value to theraygenShaderRecordAddressfield.longraygenShaderRecordSize(long value) Sets the specified value to theraygenShaderRecordSizefield.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.intsizeof()Returnssizeof(struct).intwidth()width(int value) Sets the specified value to thewidthfield.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. -
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 aVkTraceRaysIndirectCommand2KHRinstance 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<VkTraceRaysIndirectCommand2KHR>
-
raygenShaderRecordAddress
public long raygenShaderRecordAddress()- Returns:
- the value of the
raygenShaderRecordAddressfield.
-
raygenShaderRecordSize
public long raygenShaderRecordSize()- Returns:
- the value of the
raygenShaderRecordSizefield.
-
missShaderBindingTableAddress
public long missShaderBindingTableAddress()- Returns:
- the value of the
missShaderBindingTableAddressfield.
-
missShaderBindingTableSize
public long missShaderBindingTableSize()- Returns:
- the value of the
missShaderBindingTableSizefield.
-
missShaderBindingTableStride
public long missShaderBindingTableStride()- Returns:
- the value of the
missShaderBindingTableStridefield.
-
hitShaderBindingTableAddress
public long hitShaderBindingTableAddress()- Returns:
- the value of the
hitShaderBindingTableAddressfield.
-
hitShaderBindingTableSize
public long hitShaderBindingTableSize()- Returns:
- the value of the
hitShaderBindingTableSizefield.
-
hitShaderBindingTableStride
public long hitShaderBindingTableStride()- Returns:
- the value of the
hitShaderBindingTableStridefield.
-
callableShaderBindingTableAddress
public long callableShaderBindingTableAddress()- Returns:
- the value of the
callableShaderBindingTableAddressfield.
-
callableShaderBindingTableSize
public long callableShaderBindingTableSize()- Returns:
- the value of the
callableShaderBindingTableSizefield.
-
callableShaderBindingTableStride
public long callableShaderBindingTableStride()- Returns:
- the value of the
callableShaderBindingTableStridefield.
-
width
public int width()- Returns:
- the value of the
widthfield.
-
height
public int height()- Returns:
- the value of the
heightfield.
-
depth
public int depth()- Returns:
- the value of the
depthfield.
-
raygenShaderRecordAddress
Sets the specified value to theraygenShaderRecordAddressfield. -
raygenShaderRecordSize
Sets the specified value to theraygenShaderRecordSizefield. -
missShaderBindingTableAddress
Sets the specified value to themissShaderBindingTableAddressfield. -
missShaderBindingTableSize
Sets the specified value to themissShaderBindingTableSizefield. -
missShaderBindingTableStride
Sets the specified value to themissShaderBindingTableStridefield. -
hitShaderBindingTableAddress
Sets the specified value to thehitShaderBindingTableAddressfield. -
hitShaderBindingTableSize
Sets the specified value to thehitShaderBindingTableSizefield. -
hitShaderBindingTableStride
Sets the specified value to thehitShaderBindingTableStridefield. -
callableShaderBindingTableAddress
Sets the specified value to thecallableShaderBindingTableAddressfield. -
callableShaderBindingTableSize
Sets the specified value to thecallableShaderBindingTableSizefield. -
callableShaderBindingTableStride
Sets the specified value to thecallableShaderBindingTableStridefield. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
depth
Sets the specified value to thedepthfield. -
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 newVkTraceRaysIndirectCommand2KHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkTraceRaysIndirectCommand2KHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkTraceRaysIndirectCommand2KHRinstance allocated withBufferUtils. -
create
Returns a newVkTraceRaysIndirectCommand2KHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkTraceRaysIndirectCommand2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkTraceRaysIndirectCommand2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkTraceRaysIndirectCommand2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkTraceRaysIndirectCommand2KHR.Bufferinstance 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 newVkTraceRaysIndirectCommand2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkTraceRaysIndirectCommand2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkTraceRaysIndirectCommand2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkTraceRaysIndirectCommand2KHR.Bufferinstance allocated on the specifiedMemoryStackand 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.
-