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: slang-gfx backend #8089

Open
Hyiker opened this issue Oct 22, 2024 · 2 comments
Open

Feature request: slang-gfx backend #8089

Hyiker opened this issue Oct 22, 2024 · 2 comments
Labels

Comments

@Hyiker
Copy link

Hyiker commented Oct 22, 2024

Version/Branch of Dear ImGui:

1.91.1

Back-ends:

slang

Compiler, OS:

None

Full config/build information:

No response

Details:

Motivation

I'm writing a personal project with imgui and slang-gfx, and I hope there could be official support for slang-gfx backend. In short, slang is a brand new shading language resembling HLSL, but has richer language features and can be compiled to mainstream backends like dxil, spir-v etc. . slang-gfx is the abstraction library of graphics APIs, supporting cross-platform backends.

An official implementation of slang backend could be helpful for slang and imgui users.

Details of implementation

I've implemented my personal slang backend(haven't decoupled from my project framework, but it should be easy to do so). If this proposal could be taken, I'd be glad to make a PR writing the implementation.

Concerns

The only concern I have is slang is still under fast iteration development, which exact version we use in this implementation should be decided.

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

No response

@ocornut
Copy link
Owner

ocornut commented Oct 22, 2024

Hello, thanks for your interest and links.

Until a technology is widespread/common enough and stable I would not want to take on hosting an official backend.

I would however encourage you to extract yours into one, following our conventions (eg: imgui_impl_slang.cpp filenames, same function names etc). We will link to it from the list of backends in wiki. If ever Slang becomes more popular and you want it we can later consider merging it into the main repository.

@Hyiker
Copy link
Author

Hyiker commented Oct 23, 2024

Hello, thanks for your interest and links.

Until a technology is widespread/common enough and stable I would not want to take on hosting an official backend.

I would however encourage you to extract yours into one, following our conventions (eg: imgui_impl_slang.cpp filenames, same function names etc). We will link to it from the list of backends in wiki. If ever Slang becomes more popular and you want it we can later consider merging it into the main repository.

Sounds reasonable, I may deliver my impl after some minor modifications to it.

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

No branches or pull requests

2 participants