Class VkRayTracingPipelineInterfaceCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkRayTracingPipelineInterfaceCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkRayTracingPipelineInterfaceCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying additional interface information when using libraries.Description
maxPipelineRayPayloadSizeis calculated as the maximum number of bytes used by any block declared in theRayPayloadKHRorIncomingRayPayloadKHRstorage classes.maxPipelineRayHitAttributeSizeis calculated as the maximum number of bytes used by any block declared in theHitAttributeKHRstorage class. As variables in these storage classes do not have explicit offsets, the size should be calculated as if each variable has a scalar alignment equal to the largest scalar alignment of any of the block’s members.Note
There is no explicit upper limit for
maxPipelineRayPayloadSize, but in practice it should be kept as small as possible. Similar to invocation local memory, it must be allocated for each shader invocation and for devices which support many simultaneous invocations, this storage can rapidly be exhausted, resulting in failure.Valid Usage
maxPipelineRayHitAttributeSizemust be less than or equal toVkPhysicalDeviceRayTracingPipelinePropertiesKHR::maxRayHitAttributeSize
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_RAY_TRACING_PIPELINE_INTERFACE_CREATE_INFO_KHRpNextmust beNULL
See Also
VkRayTracingPipelineCreateInfoKHRLayout
struct VkRayTracingPipelineInterfaceCreateInfoKHR { VkStructureTypesType(); void const *pNext(); uint32_tmaxPipelineRayPayloadSize(); uint32_tmaxPipelineRayHitAttributeSize(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkRayTracingPipelineInterfaceCreateInfoKHR.BufferAn array ofVkRayTracingPipelineInterfaceCreateInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXPIPELINERAYHITATTRIBUTESIZE
MAXPIPELINERAYPAYLOADSIZE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkRayTracingPipelineInterfaceCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkRayTracingPipelineInterfaceCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkRayTracingPipelineInterfaceCreateInfoKHRcalloc()Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance allocated withmemCalloc.static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRayTracingPipelineInterfaceCreateInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRayTracingPipelineInterfaceCreateInfoKHRcreate()Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance allocated withBufferUtils.static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffercreate(int capacity)Returns a newVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkRayTracingPipelineInterfaceCreateInfoKHRcreate(long address)Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance for the specified memory address.static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance at the specified memory.static VkRayTracingPipelineInterfaceCreateInfoKHRcreateSafe(long address)static VkRayTracingPipelineInterfaceCreateInfoKHR.BuffercreateSafe(long address, int capacity)static VkRayTracingPipelineInterfaceCreateInfoKHRmalloc()Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance allocated withmemAlloc.static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkRayTracingPipelineInterfaceCreateInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance allocated on the specifiedMemoryStack.intmaxPipelineRayHitAttributeSize()the maximum attribute structure size in bytes used by any shader in the pipeline.VkRayTracingPipelineInterfaceCreateInfoKHRmaxPipelineRayHitAttributeSize(int value)Sets the specified value to themaxPipelineRayHitAttributeSize()field.intmaxPipelineRayPayloadSize()the maximum payload size in bytes used by any shader in the pipeline.VkRayTracingPipelineInterfaceCreateInfoKHRmaxPipelineRayPayloadSize(int value)Sets the specified value to themaxPipelineRayPayloadSize()field.static intnmaxPipelineRayHitAttributeSize(long struct)Unsafe version ofmaxPipelineRayHitAttributeSize().static voidnmaxPipelineRayHitAttributeSize(long struct, int value)Unsafe version ofmaxPipelineRayHitAttributeSize.static intnmaxPipelineRayPayloadSize(long struct)Unsafe version ofmaxPipelineRayPayloadSize().static voidnmaxPipelineRayPayloadSize(long struct, int value)Unsafe version ofmaxPipelineRayPayloadSize.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkRayTracingPipelineInterfaceCreateInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkRayTracingPipelineInterfaceCreateInfoKHRset(int sType, long pNext, int maxPipelineRayPayloadSize, int maxPipelineRayHitAttributeSize)Initializes this struct with the specified values.VkRayTracingPipelineInterfaceCreateInfoKHRset(VkRayTracingPipelineInterfaceCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkRayTracingPipelineInterfaceCreateInfoKHRsType(int value)Sets the specified value to thesType()field.VkRayTracingPipelineInterfaceCreateInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_RAY_TRACING_PIPELINE_INTERFACE_CREATE_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkRayTracingPipelineInterfaceCreateInfoKHR
public VkRayTracingPipelineInterfaceCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkRayTracingPipelineInterfaceCreateInfoKHRinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
maxPipelineRayPayloadSize
public int maxPipelineRayPayloadSize()
the maximum payload size in bytes used by any shader in the pipeline.
-
maxPipelineRayHitAttributeSize
public int maxPipelineRayHitAttributeSize()
the maximum attribute structure size in bytes used by any shader in the pipeline.
-
sType
public VkRayTracingPipelineInterfaceCreateInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkRayTracingPipelineInterfaceCreateInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_RAY_TRACING_PIPELINE_INTERFACE_CREATE_INFO_KHRvalue to thesType()field.
-
pNext
public VkRayTracingPipelineInterfaceCreateInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
maxPipelineRayPayloadSize
public VkRayTracingPipelineInterfaceCreateInfoKHR maxPipelineRayPayloadSize(int value)
Sets the specified value to themaxPipelineRayPayloadSize()field.
-
maxPipelineRayHitAttributeSize
public VkRayTracingPipelineInterfaceCreateInfoKHR maxPipelineRayHitAttributeSize(int value)
Sets the specified value to themaxPipelineRayHitAttributeSize()field.
-
set
public VkRayTracingPipelineInterfaceCreateInfoKHR set(int sType, long pNext, int maxPipelineRayPayloadSize, int maxPipelineRayHitAttributeSize)
Initializes this struct with the specified values.
-
set
public VkRayTracingPipelineInterfaceCreateInfoKHR set(VkRayTracingPipelineInterfaceCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkRayTracingPipelineInterfaceCreateInfoKHR malloc()
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkRayTracingPipelineInterfaceCreateInfoKHR calloc()
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkRayTracingPipelineInterfaceCreateInfoKHR create()
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkRayTracingPipelineInterfaceCreateInfoKHR create(long address)
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkRayTracingPipelineInterfaceCreateInfoKHR createSafe(long address)
-
malloc
public static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffer create(int capacity)
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkRayTracingPipelineInterfaceCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkRayTracingPipelineInterfaceCreateInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkRayTracingPipelineInterfaceCreateInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRayTracingPipelineInterfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nmaxPipelineRayPayloadSize
public static int nmaxPipelineRayPayloadSize(long struct)
Unsafe version ofmaxPipelineRayPayloadSize().
-
nmaxPipelineRayHitAttributeSize
public static int nmaxPipelineRayHitAttributeSize(long struct)
Unsafe version ofmaxPipelineRayHitAttributeSize().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nmaxPipelineRayPayloadSize
public static void nmaxPipelineRayPayloadSize(long struct, int value)Unsafe version ofmaxPipelineRayPayloadSize.
-
nmaxPipelineRayHitAttributeSize
public static void nmaxPipelineRayHitAttributeSize(long struct, int value)Unsafe version ofmaxPipelineRayHitAttributeSize.
-
-