Skip to content
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

Add native access to X11 visual and XCB connection #2398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YaaZ
Copy link

@YaaZ YaaZ commented Sep 12, 2023

Exposed two new native handles, which are necessary for manually creating a Vulkan surface on X11.

Exposed via glfwGetX11Visual and glfwGetXCBConnection, these are useful when doing custom Vulkan surface creation.
@elmindreda
Copy link
Member

Thank you for this PR.

This looks potentially worth adding but why create the surface manually in the first place and not via glfwCreateWindowSurface? Is there a feature or extension missing from it?

@elmindreda elmindreda added enhancement Feature suggestions and PRs X11 Vulkan waiting for reply Issues blocked waiting for information labels Feb 4, 2024
@elmindreda elmindreda changed the title X11:: Add native access to X11 visual and XCB connection Add native access to X11 visual and XCB connection Feb 4, 2024
@YaaZ
Copy link
Author

YaaZ commented Feb 5, 2024

In my case I just wanted to speed up the startup by initializing Vulkan and GLFW in parallel, so to avoid redundant synchronization and initialization overhead I just did all Vulkan-related stuff myself.

@elmindreda elmindreda removed the waiting for reply Issues blocked waiting for information label Feb 5, 2024
@elmindreda elmindreda added this to Needs Investigation in Queue Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature suggestions and PRs Vulkan X11
Projects
Queue
Needs Investigation
Development

Successfully merging this pull request may close these issues.

None yet

2 participants