Function Prototype

vkGetRayTracingShaderGroupStackSizeKHR

Query ray tracing pipeline shader group shader stack size

To query the pipeline stack size of shaders in a shader group in the ray tracing pipeline, call:

VkDeviceSize vkGetRayTracingShaderGroupStackSizeKHR(
    VkDevice device,
    VkPipeline pipeline,
    uint32_t group,
    VkShaderGroupShaderKHR groupShader);
  • device is the logical device containing the ray tracing pipeline.
  • pipeline is the ray tracing pipeline object containing the shaders groups.
  • group is the index of the shader group to query.
  • groupShader is the type of shader from the group to query.

The return value is the ray tracing pipeline stack size in bytes for the specified shader as called from the specified shader group.

Valid Usage

VUID-vkGetRayTracingShaderGroupStackSizeKHR-pipeline-04622

pipeline must be a ray tracing pipeline

VUID-vkGetRayTracingShaderGroupStackSizeKHR-group-03608

The value of group must be less than the number of shader groups in pipeline

VUID-vkGetRayTracingShaderGroupStackSizeKHR-groupShader-03609

The shader identified by groupShader in group must not be VK_SHADER_UNUSED_KHR