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: support for embedded shaders in C99 API. #3092

Closed
DylanLukes opened this issue Apr 26, 2023 · 2 comments
Closed

Feature request: support for embedded shaders in C99 API. #3092

DylanLukes opened this issue Apr 26, 2023 · 2 comments

Comments

@DylanLukes
Copy link

DylanLukes commented Apr 26, 2023

Hello,

Are embedded shaders something which can be implemented for the C99 API? The C99 API has proven complete for everything I've looked at so far, but I've not found any analog to the embedded shader functionality there.

Is this on any roadmap, or should I fork and attempt to implement it myself? (Rather: is it something I can implement, or does that functionality have any C++-specific requirements?)

Thanks!

– Dylan

@bkaradzic
Copy link
Owner

There is no plan to support this...

You can do it yourself, see:
https://github.com/bkaradzic/bgfx/blob/master/include/bgfx/embedded_shader.h

@DylanLukes
Copy link
Author

In case anyone stumbles upon this issue while looking for a solution to the same problem, here's my brief attempt:

https://gist.github.com/DylanLukes/2907e4ce03d8ceb231d0aea99189810e

Caveat emptor :). It's almost certainly broken somewhere.

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

No branches or pull requests

2 participants