Function Prototype
vkGetDeviceAccelerationStructureCompatibilityKHR
Check if a serialized acceleration structure is compatible with the current device
To check if a serialized acceleration structure is compatible with the current device call:
void vkGetDeviceAccelerationStructureCompatibilityKHR(
VkDevice device,
const VkAccelerationStructureVersionInfoKHR* pVersionInfo,
VkAccelerationStructureCompatibilityKHR* pCompatibility);
device
is the device to check the version against.pVersionInfo
is a pointer to a VkAccelerationStructureVersionInfoKHR structure specifying version information to check against the device.pCompatibility
is a pointer to a VkAccelerationStructureCompatibilityKHR value in which compatibility information is returned.
Valid Usage
Valid Usage (Implicit)
VUID-vkGetDeviceAccelerationStructureCompatibilityKHR-device-parameter
device
must be a valid VkDevice handle
VUID-vkGetDeviceAccelerationStructureCompatibilityKHR-pVersionInfo-parameter
pVersionInfo
must be a valid pointer to a valid VkAccelerationStructureVersionInfoKHR structure
VUID-vkGetDeviceAccelerationStructureCompatibilityKHR-pCompatibility-parameter
pCompatibility
must be a valid pointer to a VkAccelerationStructureCompatibilityKHR value