Skip to content

Commit

Permalink
Enable RT pipeline capture/replay feature alongside RT pipelines
Browse files Browse the repository at this point in the history
Required for using capture/replay shader handles.
  • Loading branch information
pixelcluster authored and baldurk committed Dec 10, 2024
1 parent 06047f1 commit 6a761c2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3364,6 +3364,19 @@ bool WrappedVulkan::Serialise_vkCreateDevice(SerialiserType &ser, VkPhysicalDevi
VkPhysicalDeviceProperties2 availPropsBase = {VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2};
availPropsBase.pNext = &rayProps;
ObjDisp(physicalDevice)->GetPhysicalDeviceProperties2(Unwrap(physicalDevice), &availPropsBase);

if(ext->rayTracingPipeline && !avail.rayTracingPipelineShaderGroupHandleCaptureReplay)
{
SET_ERROR_RESULT(m_FailedReplayResult, ResultCode::APIHardwareUnsupported,
"Capture requires rayTracingPipeline support, which is available, but "
"rayTracingPipelineShaderGroupHandleCaptureReplay support is not "
"available which is required to replay\n"
"\n%s",
GetPhysDeviceCompatString(false, false).c_str());
return false;
}
if(ext->rayTracingPipeline)
ext->rayTracingPipelineShaderGroupHandleCaptureReplay = VK_TRUE;
}
END_PHYS_EXT_CHECK();
}
Expand Down

0 comments on commit 6a761c2

Please sign in to comment.