-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Is there API to identify DXVK? #4455
Comments
We have a COM interface for Vulkan interop, see dxvk/src/dxgi/dxgi_interfaces.h Lines 312 to 390 in 4c09b00
Please note that the Vulkan swap chain itself can be recreated at any point in time, it's not really safe to export those images, and if you rely on current implementation details, we will break those in the future. |
Not sure if it counts as cleaner or dirtier, but FWIW specialk just checks if the loaded api dll product name contains "DXVK". |
I'd say checking the DXVK interop COM interfaces is a lot cleaner, especially since OP needs the Vulkan handles after that anyway. |
I'm currently working on a library to allow swapchain image sharing across processes in a cross platform manner. For this to work while running under DXVK I'd need to first detect DXVK, then get the VkImage handles for the underlying Vulkan renderer.
Brute force method would just be to find some DXVK function that generally always exists and using GetProcAddress on it to detect DXVK. But if there's a cleaner way I'd like to know.
The text was updated successfully, but these errors were encountered: