VkRayTracingPipelineCreateInfoNV
The VkRayTracingPipelineCreateInfoNV structure is defined as:
typedef struct VkRayTracingPipelineCreateInfoNV {
VkStructureType sType;
const void* pNext;
VkPipelineCreateFlags flags;
uint32_t stageCount;
const VkPipelineShaderStageCreateInfo* pStages;
uint32_t groupCount;
const VkRayTracingShaderGroupCreateInfoNV* pGroups;
uint32_t maxRecursionDepth;
VkPipelineLayout layout;
VkPipeline basePipelineHandle;
int32_t basePipelineIndex;
} VkRayTracingPipelineCreateInfoNV;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.flagsis a bitmask of VkPipelineCreateFlagBits specifying how the pipeline will be generated.stageCountis the number of entries in thepStagesarray.pStagesis a pointer to an array of VkPipelineShaderStageCreateInfo structures specifying the set of the shader stages to be included in the ray tracing pipeline.groupCountis the number of entries in thepGroupsarray.pGroupsis 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.maxRecursionDepthis the maximum recursion depth of shaders executed by this pipeline.layoutis the description of binding locations used by both the pipeline and descriptor sets used with the pipeline.basePipelineHandleis a pipeline to derive from.basePipelineIndexis an index into thepCreateInfosparameter to use as a pipeline to derive from.
The parameters basePipelineHandle and basePipelineIndex are
described in more detail in Pipeline
Derivatives.
If the pNext chain includes a VkPipelineCreateFlags2CreateInfo
structure, VkPipelineCreateFlags2CreateInfo::flags from that
structure is used instead of flags from this structure.
Valid Usage
VUID-VkRayTracingPipelineCreateInfoNV-None-09497
If the pNext chain does not include a
VkPipelineCreateFlags2CreateInfo structure,
flags must be a valid combination of
VkPipelineCreateFlagBits values
VUID-VkRayTracingPipelineCreateInfoNV-flags-07984
If flags contains the VK_PIPELINE_CREATE_DERIVATIVE_BIT
flag, and basePipelineIndex is -1, basePipelineHandle must
be a valid ray tracing VkPipeline handle
VUID-VkRayTracingPipelineCreateInfoNV-flags-07985
If flags contains the VK_PIPELINE_CREATE_DERIVATIVE_BIT
flag, and basePipelineHandle is VK_NULL_HANDLE,
basePipelineIndex must be a valid index into the calling
command’s pCreateInfos parameter
VUID-VkRayTracingPipelineCreateInfoNV-flags-07986
If flags contains the VK_PIPELINE_CREATE_DERIVATIVE_BIT
flag, basePipelineIndex must be -1 or basePipelineHandlemust be VK_NULL_HANDLE
VUID-VkRayTracingPipelineCreateInfoNV-layout-07987
If a push constant block is declared in a shader, a push constant range
in layout must match the shader stage
VUID-VkRayTracingPipelineCreateInfoNV-layout-10069
If a push constant block is declared in a shader, the block must be
contained inside the push constant range in layout that matches
the stage
VUID-VkRayTracingPipelineCreateInfoNV-layout-07988
If a resource variable is declared in a shader,
the corresponding descriptor set in layout must match the shader
stage
VUID-VkRayTracingPipelineCreateInfoNV-layout-07990
If a resource variable is declared in a shader,
and the descriptor type is not VK_DESCRIPTOR_TYPE_MUTABLE_EXT,
the corresponding descriptor set in layout must match the
descriptor type
VUID-VkRayTracingPipelineCreateInfoNV-layout-07991
If a resource variable is declared in a shader
as an array, the corresponding descriptor set in layout must
match the descriptor count
VUID-VkRayTracingPipelineCreateInfoNV-None-10391
If a resource variables is declared in a shader
as an array of descriptors, then the descriptor type of that variable
must not be VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK
VUID-VkRayTracingPipelineCreateInfoNV-pStages-03426
The shader code for the entry points identified by pStages, and
the rest of the state identified by this structure must adhere to the
pipeline linking rules described in the Shader Interfaces
chapter
VUID-VkRayTracingPipelineCreateInfoNV-layout-03428
The number of resources in layout accessible to each shader stage
that is used by the pipeline must be less than or equal to
VkPhysicalDeviceLimits::maxPerStageResources
VUID-VkRayTracingPipelineCreateInfoNV-flags-02904
flags must not include
VK_PIPELINE_CREATE_INDIRECT_BINDABLE_BIT_NV
VUID-VkRayTracingPipelineCreateInfoNV-pipelineCreationCacheControl-02905
If the pipelineCreationCacheControl feature is not enabled, flagsmust not include
VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT or
VK_PIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BIT
VUID-VkRayTracingPipelineCreateInfoNV-stage-06232
The stage member of at least one element of pStages must be
VK_SHADER_STAGE_RAYGEN_BIT_KHR
VUID-VkRayTracingPipelineCreateInfoNV-flags-03456
flags must not include VK_PIPELINE_CREATE_LIBRARY_BIT_KHR
VUID-VkRayTracingPipelineCreateInfoNV-maxRecursionDepth-03457
maxRecursionDepth must be less than or equal to
VkPhysicalDeviceRayTracingPropertiesNV::maxRecursionDepth
VUID-VkRayTracingPipelineCreateInfoNV-flags-03458
flags must not include
VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_BIT_KHR
VUID-VkRayTracingPipelineCreateInfoNV-flags-03459
flags must not include
VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR
VUID-VkRayTracingPipelineCreateInfoNV-flags-03460
flags must not include
VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_MISS_SHADERS_BIT_KHR
VUID-VkRayTracingPipelineCreateInfoNV-flags-03461
flags must not include
VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHR
VUID-VkRayTracingPipelineCreateInfoNV-flags-03462
flags must not include
VK_PIPELINE_CREATE_RAY_TRACING_SKIP_AABBS_BIT_KHR
VUID-VkRayTracingPipelineCreateInfoNV-flags-03463
flags must not include
VK_PIPELINE_CREATE_RAY_TRACING_SKIP_TRIANGLES_BIT_KHR
VUID-VkRayTracingPipelineCreateInfoNV-flags-03588
flags must not include
VK_PIPELINE_CREATE_RAY_TRACING_SHADER_GROUP_HANDLE_CAPTURE_REPLAY_BIT_KHR
VUID-VkRayTracingPipelineCreateInfoNV-flags-04948
flags must not include
VK_PIPELINE_CREATE_RAY_TRACING_ALLOW_MOTION_BIT_NV
VUID-VkRayTracingPipelineCreateInfoNV-flags-02957
flags must not include both
VK_PIPELINE_CREATE_DEFER_COMPILE_BIT_NV and
VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT at the
same time
VUID-VkRayTracingPipelineCreateInfoNV-pipelineStageCreationFeedbackCount-06651
If
VkPipelineCreationFeedbackCreateInfo::pipelineStageCreationFeedbackCount
is not 0, it must be equal to stageCount
VUID-VkRayTracingPipelineCreateInfoNV-stage-06898
The stage value in all pStages elements must be one of
VK_SHADER_STAGE_RAYGEN_BIT_KHR,
VK_SHADER_STAGE_ANY_HIT_BIT_KHR,
VK_SHADER_STAGE_CLOSEST_HIT_BIT_KHR,
VK_SHADER_STAGE_MISS_BIT_KHR,
VK_SHADER_STAGE_INTERSECTION_BIT_KHR, or
VK_SHADER_STAGE_CALLABLE_BIT_KHR
VUID-VkRayTracingPipelineCreateInfoNV-flags-07402
flags must not include
VK_PIPELINE_CREATE_RAY_TRACING_OPACITY_MICROMAP_BIT_EXT
VUID-VkRayTracingPipelineCreateInfoNV-flags-07998
flags must not include
VK_PIPELINE_CREATE_RAY_TRACING_DISPLACEMENT_MICROMAP_BIT_NV
VUID-VkRayTracingPipelineCreateInfoNV-flags-11008
flags must not include
VK_PIPELINE_CREATE_2_INDIRECT_BINDABLE_BIT_EXT
Valid Usage (Implicit)
VUID-VkRayTracingPipelineCreateInfoNV-sType-sType
sType must be VK_STRUCTURE_TYPE_RAY_TRACING_PIPELINE_CREATE_INFO_NV
VUID-VkRayTracingPipelineCreateInfoNV-pNext-pNext
Each pNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkPipelineCreateFlags2CreateInfo or VkPipelineCreationFeedbackCreateInfo
VUID-VkRayTracingPipelineCreateInfoNV-sType-unique
The sType value of each structure in the pNext chain must be unique
VUID-VkRayTracingPipelineCreateInfoNV-pStages-parameter
pStages must be a valid pointer to an array of stageCount valid VkPipelineShaderStageCreateInfo structures
VUID-VkRayTracingPipelineCreateInfoNV-pGroups-parameter
pGroups must be a valid pointer to an array of groupCount valid VkRayTracingShaderGroupCreateInfoNV structures
VUID-VkRayTracingPipelineCreateInfoNV-layout-parameter
layout must be a valid VkPipelineLayout handle
VUID-VkRayTracingPipelineCreateInfoNV-stageCount-arraylength
stageCount must be greater than 0
VUID-VkRayTracingPipelineCreateInfoNV-groupCount-arraylength
groupCount must be greater than 0
VUID-VkRayTracingPipelineCreateInfoNV-commonparent
Both of basePipelineHandle, and layout that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDevice