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

Output spirv as C array #21

Closed
jesta88 opened this issue Jun 5, 2018 · 2 comments
Closed

Output spirv as C array #21

jesta88 opened this issue Jun 5, 2018 · 2 comments

Comments

@jesta88
Copy link

jesta88 commented Jun 5, 2018

This output would be very useful for small in-engine shaders that you just want embedded in the code.

Example: https://github.com/bkaradzic/bgfx/blob/master/src/vs_clear.bin.h

And here's one way to convert to array: https://github.com/Novum/vkQuake/blob/master/Shaders/bintoc.c

@tgjones
Copy link
Owner

tgjones commented Jun 28, 2018

Done! I've implemented it for all output binaries, not just SPIR-V.

download-button

c-header

@jesta88
Copy link
Author

jesta88 commented Jun 28, 2018

This is great, exactly what I needed. Thanks!

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