Package org.lwjgl.vulkan
Class VkPhysicalDeviceRayTracingPipelineFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceRayTracingPipelineFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceRayTracingPipelineFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the ray tracing features that can be supported by an implementation.Description
If the
VkPhysicalDeviceRayTracingPipelineFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceRayTracingPipelineFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage
- If
rayTracingPipelineShaderGroupHandleCaptureReplayMixedisTRUE,rayTracingPipelineShaderGroupHandleCaptureReplaymust also beTRUE
Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceRayTracingPipelineFeaturesKHR { VkStructureTypesType(); void *pNext(); VkBool32rayTracingPipeline(); VkBool32rayTracingPipelineShaderGroupHandleCaptureReplay(); VkBool32rayTracingPipelineShaderGroupHandleCaptureReplayMixed(); VkBool32rayTracingPipelineTraceRaysIndirect(); VkBool32rayTraversalPrimitiveCulling(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceRayTracingPipelineFeaturesKHR.BufferAn array ofVkPhysicalDeviceRayTracingPipelineFeaturesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
RAYTRACINGPIPELINE
RAYTRACINGPIPELINESHADERGROUPHANDLECAPTUREREPLAY
RAYTRACINGPIPELINESHADERGROUPHANDLECAPTUREREPLAYMIXED
RAYTRACINGPIPELINETRACERAYSINDIRECT
RAYTRAVERSALPRIMITIVECULLINGThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceRayTracingPipelineFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceRayTracingPipelineFeaturesKHRcalloc()Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRayTracingPipelineFeaturesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRayTracingPipelineFeaturesKHRcreate()Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceRayTracingPipelineFeaturesKHRcreate(long address)Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance for the specified memory address.static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceRayTracingPipelineFeaturesKHRcreateSafe(long address)static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceRayTracingPipelineFeaturesKHRmalloc()Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceRayTracingPipelineFeaturesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnrayTracingPipeline(long struct)Unsafe version ofrayTracingPipeline().static voidnrayTracingPipeline(long struct, int value)Unsafe version ofrayTracingPipeline.static intnrayTracingPipelineShaderGroupHandleCaptureReplay(long struct)Unsafe version ofrayTracingPipelineShaderGroupHandleCaptureReplay().static voidnrayTracingPipelineShaderGroupHandleCaptureReplay(long struct, int value)Unsafe version ofrayTracingPipelineShaderGroupHandleCaptureReplay.static intnrayTracingPipelineShaderGroupHandleCaptureReplayMixed(long struct)Unsafe version ofrayTracingPipelineShaderGroupHandleCaptureReplayMixed().static voidnrayTracingPipelineShaderGroupHandleCaptureReplayMixed(long struct, int value)Unsafe version ofrayTracingPipelineShaderGroupHandleCaptureReplayMixed.static intnrayTracingPipelineTraceRaysIndirect(long struct)Unsafe version ofrayTracingPipelineTraceRaysIndirect().static voidnrayTracingPipelineTraceRaysIndirect(long struct, int value)Unsafe version ofrayTracingPipelineTraceRaysIndirect.static intnrayTraversalPrimitiveCulling(long struct)Unsafe version ofrayTraversalPrimitiveCulling().static voidnrayTraversalPrimitiveCulling(long struct, int value)Unsafe version ofrayTraversalPrimitiveCulling.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.VkPhysicalDeviceRayTracingPipelineFeaturesKHRpNext(long value)Sets the specified value to thepNext()field.booleanrayTracingPipeline()indicates whether the implementation supports the ray tracing pipeline functionality.VkPhysicalDeviceRayTracingPipelineFeaturesKHRrayTracingPipeline(boolean value)Sets the specified value to therayTracingPipeline()field.booleanrayTracingPipelineShaderGroupHandleCaptureReplay()indicates whether the implementation supports saving and reusing shader group handles, e.g.VkPhysicalDeviceRayTracingPipelineFeaturesKHRrayTracingPipelineShaderGroupHandleCaptureReplay(boolean value)Sets the specified value to therayTracingPipelineShaderGroupHandleCaptureReplay()field.booleanrayTracingPipelineShaderGroupHandleCaptureReplayMixed()indicates whether the implementation supports reuse of shader group handles being arbitrarily mixed with creation of non-reused shader group handles.VkPhysicalDeviceRayTracingPipelineFeaturesKHRrayTracingPipelineShaderGroupHandleCaptureReplayMixed(boolean value)Sets the specified value to therayTracingPipelineShaderGroupHandleCaptureReplayMixed()field.booleanrayTracingPipelineTraceRaysIndirect()indicates whether the implementation supports indirect ray tracing commands, e.g.VkPhysicalDeviceRayTracingPipelineFeaturesKHRrayTracingPipelineTraceRaysIndirect(boolean value)Sets the specified value to therayTracingPipelineTraceRaysIndirect()field.booleanrayTraversalPrimitiveCulling()indicates whether the implementation supports primitive culling during ray traversal.VkPhysicalDeviceRayTracingPipelineFeaturesKHRrayTraversalPrimitiveCulling(boolean value)Sets the specified value to therayTraversalPrimitiveCulling()field.VkPhysicalDeviceRayTracingPipelineFeaturesKHRset(int sType, long pNext, boolean rayTracingPipeline, boolean rayTracingPipelineShaderGroupHandleCaptureReplay, boolean rayTracingPipelineShaderGroupHandleCaptureReplayMixed, boolean rayTracingPipelineTraceRaysIndirect, boolean rayTraversalPrimitiveCulling)Initializes this struct with the specified values.VkPhysicalDeviceRayTracingPipelineFeaturesKHRset(VkPhysicalDeviceRayTracingPipelineFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceRayTracingPipelineFeaturesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceRayTracingPipelineFeaturesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHRvalue to thesType()field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, RAYTRACINGPIPELINE, RAYTRACINGPIPELINESHADERGROUPHANDLECAPTUREREPLAY, RAYTRACINGPIPELINESHADERGROUPHANDLECAPTUREREPLAYMIXED, RAYTRACINGPIPELINETRACERAYSINDIRECT, RAYTRAVERSALPRIMITIVECULLING
The struct member offsets.
-
-
Constructor Detail
-
VkPhysicalDeviceRayTracingPipelineFeaturesKHR
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance 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.
-
rayTracingPipeline
public boolean rayTracingPipeline()
indicates whether the implementation supports the ray tracing pipeline functionality. See Ray Tracing.
-
rayTracingPipelineShaderGroupHandleCaptureReplay
public boolean rayTracingPipelineShaderGroupHandleCaptureReplay()
indicates whether the implementation supports saving and reusing shader group handles, e.g. for trace capture and replay.
-
rayTracingPipelineShaderGroupHandleCaptureReplayMixed
public boolean rayTracingPipelineShaderGroupHandleCaptureReplayMixed()
indicates whether the implementation supports reuse of shader group handles being arbitrarily mixed with creation of non-reused shader group handles. If this isFALSE, all reused shader group handles must be specified before any non-reused handles may be created.
-
rayTracingPipelineTraceRaysIndirect
public boolean rayTracingPipelineTraceRaysIndirect()
indicates whether the implementation supports indirect ray tracing commands, e.g.CmdTraceRaysIndirectKHR.
-
rayTraversalPrimitiveCulling
public boolean rayTraversalPrimitiveCulling()
indicates whether the implementation supports primitive culling during ray traversal.
-
sType
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
rayTracingPipeline
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR rayTracingPipeline(boolean value)
Sets the specified value to therayTracingPipeline()field.
-
rayTracingPipelineShaderGroupHandleCaptureReplay
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR rayTracingPipelineShaderGroupHandleCaptureReplay(boolean value)
Sets the specified value to therayTracingPipelineShaderGroupHandleCaptureReplay()field.
-
rayTracingPipelineShaderGroupHandleCaptureReplayMixed
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR rayTracingPipelineShaderGroupHandleCaptureReplayMixed(boolean value)
Sets the specified value to therayTracingPipelineShaderGroupHandleCaptureReplayMixed()field.
-
rayTracingPipelineTraceRaysIndirect
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR rayTracingPipelineTraceRaysIndirect(boolean value)
Sets the specified value to therayTracingPipelineTraceRaysIndirect()field.
-
rayTraversalPrimitiveCulling
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR rayTraversalPrimitiveCulling(boolean value)
Sets the specified value to therayTraversalPrimitiveCulling()field.
-
set
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR set(int sType, long pNext, boolean rayTracingPipeline, boolean rayTracingPipelineShaderGroupHandleCaptureReplay, boolean rayTracingPipelineShaderGroupHandleCaptureReplayMixed, boolean rayTracingPipelineTraceRaysIndirect, boolean rayTraversalPrimitiveCulling)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceRayTracingPipelineFeaturesKHR set(VkPhysicalDeviceRayTracingPipelineFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR malloc()
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR calloc()
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR create()
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR create(long address)
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceRayTracingPipelineFeaturesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRayTracingPipelineFeaturesKHR.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().
-
nrayTracingPipeline
public static int nrayTracingPipeline(long struct)
Unsafe version ofrayTracingPipeline().
-
nrayTracingPipelineShaderGroupHandleCaptureReplay
public static int nrayTracingPipelineShaderGroupHandleCaptureReplay(long struct)
Unsafe version ofrayTracingPipelineShaderGroupHandleCaptureReplay().
-
nrayTracingPipelineShaderGroupHandleCaptureReplayMixed
public static int nrayTracingPipelineShaderGroupHandleCaptureReplayMixed(long struct)
Unsafe version ofrayTracingPipelineShaderGroupHandleCaptureReplayMixed().
-
nrayTracingPipelineTraceRaysIndirect
public static int nrayTracingPipelineTraceRaysIndirect(long struct)
Unsafe version ofrayTracingPipelineTraceRaysIndirect().
-
nrayTraversalPrimitiveCulling
public static int nrayTraversalPrimitiveCulling(long struct)
Unsafe version ofrayTraversalPrimitiveCulling().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nrayTracingPipeline
public static void nrayTracingPipeline(long struct, int value)Unsafe version ofrayTracingPipeline.
-
nrayTracingPipelineShaderGroupHandleCaptureReplay
public static void nrayTracingPipelineShaderGroupHandleCaptureReplay(long struct, int value)Unsafe version ofrayTracingPipelineShaderGroupHandleCaptureReplay.
-
nrayTracingPipelineShaderGroupHandleCaptureReplayMixed
public static void nrayTracingPipelineShaderGroupHandleCaptureReplayMixed(long struct, int value)Unsafe version ofrayTracingPipelineShaderGroupHandleCaptureReplayMixed.
-
nrayTracingPipelineTraceRaysIndirect
public static void nrayTracingPipelineTraceRaysIndirect(long struct, int value)Unsafe version ofrayTracingPipelineTraceRaysIndirect.
-
nrayTraversalPrimitiveCulling
public static void nrayTraversalPrimitiveCulling(long struct, int value)Unsafe version ofrayTraversalPrimitiveCulling.
-
-