# vkGetDeviceAccelerationStructureCompatibilityKHR(3) Manual Page

## Name

vkGetDeviceAccelerationStructureCompatibilityKHR - Check if a serialized acceleration structure is compatible with the current device

## 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 with `version` as the version information is compatible with `device`.

- `VK_ERROR_INCOMPATIBLE_VERSION_KHR` is returned if an acceleration structure serialized with `version` as the version information is not compatible with `device`.

Valid Usage

- The `rayTracing` or `rayQuery` feature must be enabled

Valid Usage (Implicit)

- `device` must be a valid VkDevice handle

- `version` must be a valid pointer to a valid VkAccelerationStructureVersionKHR structure

Return Codes

On success, this command returns

  - `VK_SUCCESS`

On failure, this command returns

  - `VK_ERROR_INCOMPATIBLE_VERSION_KHR`

## See Also

VkAccelerationStructureVersionKHR, VkDevice

## 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.