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
-
device
is the device to check the version against. -
pVersionInfo
points to the VkAccelerationStructureVersionInfoKHR version information to check against the device. -
pCompatibility
points 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.