Skip to content
Discussion options

You must be logged in to vote

Figured it out:

    auto window = vsg::Window::create(traits);

    auto pd = window->getOrCreatePhysicalDevice();

    if (pd->supportsDeviceExtension(VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME))
    {
        traits->deviceExtensionNames.push_back(VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME);
    }

I was confusing PhysicalDevice::supportsDeviceExtension (which says whether the device supports it) and Device::supportsDeviceExtension (which says whether you have tried to enabled it).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@robertosfield
Comment options

Answer selected by gwaldron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants