Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature request: slang-gfx backend #8089

Closed
Hyiker opened this issue Oct 22, 2024 · 3 comments
Closed

Feature request: slang-gfx backend #8089

Hyiker opened this issue Oct 22, 2024 · 3 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.

@ocornut
Copy link
Owner

ocornut commented Oct 23, 2024

Thank you. I'll close this now. If you end up sharing something please post here as people are likely to stumble here.

In the meanwhile I'm adding a link to this thread from https://github.com/ocornut/imgui/wiki/Bindings#frameworkengine-backends

@ocornut ocornut closed this as completed Oct 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants