Function Prototype

vkCompileDeferredNV

Deferred compilation of shaders

To compile a deferred shader in a pipeline call:

VkResult vkCompileDeferredNV(
    VkDevice device,
    VkPipeline pipeline,
    uint32_t shader);
  • device is the logical device containing the ray tracing pipeline.
  • pipeline is the ray tracing pipeline object containing the shaders.
  • shader is the index of the shader to compile.

Valid Usage

VUID-vkCompileDeferredNV-pipeline-04621

pipeline must be a ray tracing pipeline

VUID-vkCompileDeferredNV-pipeline-02237

pipeline must have been created with VK_PIPELINE_CREATE_DEFER_COMPILE_BIT_NV

VUID-vkCompileDeferredNV-shader-02238

shader must not have been called as a deferred compile before

Valid Usage (Implicit)

VUID-vkCompileDeferredNV-pipeline-parent

pipeline must have been created, allocated, or retrieved from device