C Specification
To check if a serialized acceleration structure is compatible with the current device call:
VkResult vkGetDeviceAccelerationStructureCompatibilityKHR(
VkDevice device,
const VkAccelerationStructureVersionKHR* version);
Parameters
-
device
is the device to check the version against. -
version
points to the VkAccelerationStructureVersionKHR version information to check against the device.
Description
This possible return values for
vkGetDeviceAccelerationStructureCompatibilityKHR
are:
-
VK_SUCCESS
is returned if an acceleration structure serialized withversion
as the version information is compatible withdevice
. -
VK_ERROR_INCOMPATIBLE_VERSION_KHR
is returned if an acceleration structure serialized withversion
as 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.