Closed cheako closed 4 years ago
We no longer use glsl-to-spirv
, so I am not sure why you are running into this issue.
What replaces glsl-to-spirv
? I'm using it directly and don't know how to report issues.
@rukai Shaderc tackles a different issue and when it's appropriate my project uses it. glsl-to-spirv does compile-time compilation of shaders, where shaderc can be used to compile shaders at run-time.
Well I don't think glsl-to-spirv actually does that, but it's been a while...
Regardless what you actually want is https://github.com/Ralith/vk-shader-macros
Sorry, I think I'm confused. https://crates.io/crates/glsl-to-spirv-macros
Ahah, makes sense, I haven't seen glsl-to-spirv-macros before. I recommend vk-shader-macros as it is maintained and does not result in undefined behaviour due to incorrect alignment
One feature vk-shader-macros is missing is inline glsl, so I don't think I'll switch. Thanks though.
As glsl-to-spirv is somehow related to vulkano, but this relationship is not clear on cursory inspection, it's difficult to be clear.
CC=x86_64-w64-mingw32-gcc-posix CXX=x86_64-w64-mingw32-g++-posix CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=x86_64-w64-mingw32-gcc-posix cargo build --target x86_64-pc-windows-gnu
As this is a simple matter I don't see how the crate here has much influence, but to be complete: https://gitlab.com/cheako/simulide-rs/tree/imgui_success_001
https://www.reddit.com/r/rust/comments/csdrmt/cross_compiling_ccpp_with_rust_providing_threads/