Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkRayTracingPipelineCreateInfoNV

extends Struct<VkRayTracingPipelineCreateInfoNV>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying parameters of a newly created ray tracing pipeline.
Description

The parameters basePipelineHandle and basePipelineIndex are described in more detail in Pipeline Derivatives.

If a VkPipelineCreateFlags2CreateInfoKHR structure is present in the pNext chain, VkPipelineCreateFlags2CreateInfoKHR::flags from that structure is used instead of flags from this structure.

Valid Usage
Valid Usage (Implicit)
See Also

VkPipelineShaderStageCreateInfo, VkRayTracingShaderGroupCreateInfoNV, CreateRayTracingPipelinesNV

Layout


struct VkRayTracingPipelineCreateInfoNV {
    VkStructureType sType;
    void const * pNext;
    VkPipelineCreateFlags flags;
    uint32_t stageCount;
    VkPipelineShaderStageCreateInfo const * pStages;
    uint32_t groupCount;
    VkRayTracingShaderGroupCreateInfoNV const * pGroups;
    uint32_t maxRecursionDepth;
    VkPipelineLayout layout;
    VkPipeline basePipelineHandle;
    int32_t basePipelineIndex;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BASEPIPELINEHANDLE

The struct member offsets.

public static final int
BASEPIPELINEINDEX

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
GROUPCOUNT

The struct member offsets.

public static final int
LAYOUT

The struct member offsets.

public static final int
MAXRECURSIONDEPTH

The struct member offsets.

public static final int
PGROUPS

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
PSTAGES

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STAGECOUNT

The struct member offsets.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkRayTracingPipelineCreateInfoNV(ByteBuffer container)

Creates a VkRayTracingPipelineCreateInfoNV instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public long
basePipelineHandle()

a pipeline to derive from.

public VkRayTracingPipelineCreateInfoNV
basePipelineHandle(long value)

Sets the specified value to the basePipelineHandle field.

public int
basePipelineIndex()

an index into the pCreateInfos parameter to use as a pipeline to derive from.

public VkRayTracingPipelineCreateInfoNV
basePipelineIndex(int value)

Sets the specified value to the basePipelineIndex field.

public static VkRayTracingPipelineCreateInfoNV
calloc()

Returns a new VkRayTracingPipelineCreateInfoNV instance allocated with memCalloc.

public static VkRayTracingPipelineCreateInfoNV.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkRayTracingPipelineCreateInfoNV.Buffer instance allocated with memCalloc.

public static VkRayTracingPipelineCreateInfoNV
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRayTracingPipelineCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkRayTracingPipelineCreateInfoNV.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRayTracingPipelineCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkRayTracingPipelineCreateInfoNV
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingPipelineCreateInfoNV
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingPipelineCreateInfoNV.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingPipelineCreateInfoNV.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected VkRayTracingPipelineCreateInfoNV
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkRayTracingPipelineCreateInfoNV
create()

Returns a new VkRayTracingPipelineCreateInfoNV instance allocated with BufferUtils.

public static VkRayTracingPipelineCreateInfoNV
create(long address)

Returns a new VkRayTracingPipelineCreateInfoNV instance for the specified memory address.

public static VkRayTracingPipelineCreateInfoNV.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkRayTracingPipelineCreateInfoNV.Buffer instance allocated with BufferUtils.

public static VkRayTracingPipelineCreateInfoNV.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkRayTracingPipelineCreateInfoNV.Buffer instance at the specified memory.

public static VkRayTracingPipelineCreateInfoNV
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkRayTracingPipelineCreateInfoNV.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
flags()

a bitmask of VkPipelineCreateFlagBits specifying how the pipeline will be generated.

public VkRayTracingPipelineCreateInfoNV
flags(int value)

Sets the specified value to the flags field.

public int
groupCount()

the number of entries in the pGroups array.

public long
layout()

the description of binding locations used by both the pipeline and descriptor sets used with the pipeline.

public VkRayTracingPipelineCreateInfoNV
layout(long value)

Sets the specified value to the layout field.

public static VkRayTracingPipelineCreateInfoNV
malloc()

Returns a new VkRayTracingPipelineCreateInfoNV instance allocated with memAlloc.

public static VkRayTracingPipelineCreateInfoNV.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkRayTracingPipelineCreateInfoNV.Buffer instance allocated with memAlloc.

public static VkRayTracingPipelineCreateInfoNV
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRayTracingPipelineCreateInfoNV instance allocated on the specified MemoryStack.

public static VkRayTracingPipelineCreateInfoNV.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRayTracingPipelineCreateInfoNV.Buffer instance allocated on the specified MemoryStack.

public static VkRayTracingPipelineCreateInfoNV
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingPipelineCreateInfoNV
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingPipelineCreateInfoNV.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkRayTracingPipelineCreateInfoNV.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int
maxRecursionDepth()

the maximum recursion depth of shaders executed by this pipeline.

public VkRayTracingPipelineCreateInfoNV
maxRecursionDepth(int value)

Sets the specified value to the maxRecursionDepth field.

public static long
nbasePipelineHandle(long struct)

Unsafe version of basePipelineHandle.

public static void
nbasePipelineHandle(long struct, long value)

Unsafe version of basePipelineHandle.

public static int
nbasePipelineIndex(long struct)

Unsafe version of basePipelineIndex.

public static void
nbasePipelineIndex(long struct, int value)

Unsafe version of basePipelineIndex.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static int
ngroupCount(long struct)

Unsafe version of groupCount.

public static void
ngroupCount(long struct, int value)

Sets the specified value to the groupCount field of the specified struct.

public static long
nlayout(long struct)

Unsafe version of layout.

public static void
nlayout(long struct, long value)

Unsafe version of layout.

public static int
nmaxRecursionDepth(long struct)

Unsafe version of maxRecursionDepth.

public static void
nmaxRecursionDepth(long struct, int value)

Unsafe version of maxRecursionDepth.

public static VkRayTracingShaderGroupCreateInfoNV.Buffer
npGroups(long struct)

Unsafe version of pGroups.

public static void
npGroups(long struct, VkRayTracingShaderGroupCreateInfoNV.Buffer value)

Unsafe version of pGroups.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static VkPipelineShaderStageCreateInfo.Buffer
npStages(long struct)

Unsafe version of pStages.

public static void
npStages(long struct, VkPipelineShaderStageCreateInfo.Buffer value)

Unsafe version of pStages.

public static int
nstageCount(long struct)

Unsafe version of stageCount.

public static void
nstageCount(long struct, int value)

Sets the specified value to the stageCount field of the specified struct.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public VkRayTracingShaderGroupCreateInfoNV.Buffer
pGroups()

a pointer to an array of VkRayTracingShaderGroupCreateInfoNV structures describing the set of the shader stages to be included in each shader group in the ray tracing pipeline.

public VkRayTracingPipelineCreateInfoNV
public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkRayTracingPipelineCreateInfoNV
pNext(long value)

Sets the specified value to the pNext field.

public VkRayTracingPipelineCreateInfoNV
pNext(VkPipelineCreateFlags2CreateInfoKHR value)

Prepends the specified VkPipelineCreateFlags2CreateInfoKHR value to the pNext chain.

public VkRayTracingPipelineCreateInfoNV
pNext(VkPipelineCreationFeedbackCreateInfo value)

Prepends the specified VkPipelineCreationFeedbackCreateInfo value to the pNext chain.

public VkRayTracingPipelineCreateInfoNV
pNext(VkPipelineCreationFeedbackCreateInfoEXT value)

Prepends the specified VkPipelineCreationFeedbackCreateInfoEXT value to the pNext chain.

public VkPipelineShaderStageCreateInfo.Buffer
pStages()

a pointer to an array of VkPipelineShaderStageCreateInfo structures specifying the set of the shader stages to be included in the ray tracing pipeline.

public VkRayTracingPipelineCreateInfoNV
public VkRayTracingPipelineCreateInfoNV
set(int sType, long pNext, int flags, VkPipelineShaderStageCreateInfo.Buffer pStages, VkRayTracingShaderGroupCreateInfoNV.Buffer pGroups, int maxRecursionDepth, long layout, long basePipelineHandle, int basePipelineIndex)

Initializes this struct with the specified values.

public VkRayTracingPipelineCreateInfoNV

Returns:

this struct
set
(VkRayTracingPipelineCreateInfoNV
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
stageCount()

the number of entries in the pStages array.

public int
sType()

a VkStructureType value identifying this structure.

public VkRayTracingPipelineCreateInfoNV
sType(int value)

Sets the specified value to the sType field.

public VkRayTracingPipelineCreateInfoNV
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate