C Specification
To check if a serialized acceleration structure is compatible with the current device call:
// Provided by VK_KHR_acceleration_structure
void vkGetDeviceAccelerationStructureCompatibilityKHR(
VkDevice device,
const VkAccelerationStructureVersionInfoKHR* pVersionInfo,
VkAccelerationStructureCompatibilityKHR* pCompatibility);
Parameters
-
deviceis the device to check the version against. -
pVersionInfopoints to the VkAccelerationStructureVersionInfoKHR version information to check against the device. -
pCompatibilitypoints to the VkAccelerationStructureCompatibilityKHR compatibility return value.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.