mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 15:36:33 +00:00
Enable RT pipeline capture/replay feature alongside RT pipelines
Required for using capture/replay shader handles.
This commit is contained in:
committed by
Baldur Karlsson
parent
06047f10dd
commit
6a761c2196
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user