Skip to content

Context::getCompatibleDevices(const ContextCreateInfo& info) will return the wrong compatible device, when the physical device is CPU type. #85

Description

@Frederique-Hsu

Inside the Context::getCompatibleDevices(const ContextCreateInfo& info) method,

exactly calling the getDeviceExtensions(physicalDevice) function,

when passing an argument of CPU type, Vulkan API vkEnumerateDeviceExtensionProperties(physicalDevice, nullptr, &count, extensionProperties.data() will return almost all the extensions.

If user wants to enable the ray-tracing function, add VK_KHR_acceleration_structure and VK_KHR_ray_tracing_pipeline extensions, it can pass the checking missingExtensions = checkEntryArray(extensionProperties, info.deviceExtensions), and further regards the CPU device as
compatible device.

Actually this is a wrong compatible device. It should skip the device of CPU type.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions