C Specification
To check if a serialized acceleration structure is compatible with the current device call:
VkResult vkGetDeviceAccelerationStructureCompatibilityKHR(
VkDevice device,
const VkAccelerationStructureVersionKHR* version);
Parameters
-
deviceis the device to check the version against. -
versionpoints to the VkAccelerationStructureVersionKHR version information to check against the device.
Description
This possible return values for
vkGetDeviceAccelerationStructureCompatibilityKHR are:
-
VK_SUCCESSis returned if an acceleration structure serialized withversionas the version information is compatible withdevice. -
VK_ERROR_INCOMPATIBLE_VERSION_KHRis returned if an acceleration structure serialized withversionas the version information is not compatible withdevice.
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.
Copyright
Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.