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

[Feature Request] DirectX Renderer #245

Open
powellnorma opened this issue Nov 7, 2023 · 3 comments
Open

[Feature Request] DirectX Renderer #245

powellnorma opened this issue Nov 7, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@powellnorma
Copy link

powellnorma commented Nov 7, 2023

Related problem

AllenDang/giu#170 (comment)
AllenDang/giu#147 (comment)

Your request

It would be useful to be able to use the DirectX renderer, so that the GUI starts even if no "real" GPU driver is installed. I tested the demos from https://github.com/ocornut/imgui#demo and the directX executables work just fine. Is this feasible?

Currently I get: APIUnavailable: WGL: The driver does not appear to support OpenGL

Alternative solution

No response

Additional context

No response

@powellnorma powellnorma added the enhancement New feature or request label Nov 7, 2023
@powellnorma
Copy link
Author

Ok, what I found was this:
https://github.com/AllenDang/giu/blob/04cd961c1d12d31a7bcd329350a686d6c76cc3fe/MasterWindow.go#L88

So probably some wrapper logic would have to be implemented in imgui-go first?

type GLFWBackend struct {

@gucio321
Copy link
Collaborator

gucio321 commented Nov 8, 2023

Yep. There is a backend implementation in cimgui and other backend should be implemented there first. Unfortunately i can't do anything about directx as I'm a Linux user

@gucio321 gucio321 transferred this issue from AllenDang/giu Feb 17, 2024
@gucio321
Copy link
Collaborator

here is C++ Code. We need to implement it like sdl and glfw stuff. https://github.com/ocornut/imgui/tree/master/examples/example_sdl2_directx11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants