bevyengine / bevyengine/bevy

Compile time shaders translation

Open
#648 3 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Feature
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
4d 8m
Merged PRs (30d)
147

Description

I noticed that in some scenarios there's no better solution than translate shaders (GLSL or any other) to SPIR-V at compile time (or AOT compilation). For example there's official [doc](https://developer.android.com/ndk/guides/graphics/shader-compilers) about vulkan shaders compilation for Android and that notices about Ahead of time compilation that places final spv files directly to apk.

Also, there is some examples of vulkan + build time compilation of shaders [here](https://www.github.com/adrien-ben/vulkan-tutorial-rs/tree/master/build.rs).

So I'm curious, is it right and could be added to Bevy?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.