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

Direct to Display? #1205

Open
cheako opened this issue Oct 3, 2019 · 2 comments
Open

Direct to Display? #1205

cheako opened this issue Oct 3, 2019 · 2 comments

Comments

@cheako
Copy link

cheako commented Oct 3, 2019

I'm looking into porting my application to the Nintendo Switch. I'm assuming if I can get Vulkan to work at all it would be via D2D. I did write a cpp app that used either GLFW or direct to display and I was able to abstract over the two APIs. For winit I don't see how it would be easy to do the same.

This question has two parts. The first is about winit's support of windowless environments and systemd's logind and open event devices is or would be supported.

The second is about the existence of other projects that might enable this. I had looked into Smithay and that's how I discovered the winit project.

@Osspial
Copy link
Contributor

Osspial commented Oct 5, 2019

Winit doesn't currently support windowless environments. I remember seeing some talk within the last few months about supporting the Linux Framebuffer, but work on that hasn't started and I don't know what form that API would take. That wouldn't work on the Switch, but it's the closest thing I've seen to that.

I personally can't answer your question about related projects, unfortunately. AFAIK the main reason we need Smithay is because Wayland pushes more of the implementation onto the application than other platforms do, so I expect we'd write most of the implementation ourselves, but I'm not certain about that.

@goddessfreya
Copy link
Contributor

I remember seeing some talk within the last few months about supporting the Linux Framebuffer, but work on that hasn't started and I don't know what form that API would take.

Likely this: #1006

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

No branches or pull requests

3 participants