crevice
crevice copied to clipboard
Rust crate to generate GLSL structs with explicitly-initialized padding bytes
This should help us catch more issues, hopefully.
I'm looking for a library for handling shader layouts in rust. From the example shown in README, The `derive(AsStd140)` seems to generate a new std140 layout struct and provide a...
Could you please provide instructions on how to get those definitions working? I see impl macro invocations hiding behind the "glam" flag but I fail to get them in scope...
Working arrays in crevice, can you believe it?! Quite a bit of black magic with newtypes and additional traits, but overall I quite like the final design.
https://github.com/LPGhatguy/crevice/blob/c38c0e3c765ab5f5360036dd345b206bfcda0b12/src/std430/traits.rs#L166 This appears to have been fixed for WriteStd140, but WriteStd430 seems to have been missed.
This one didn't pan out without implementing `IntoMint` for primitives, but I wanted to open this for visibility.
I don’t have the answer at hand but one could check if the sizes of the members (recursively for structs) are in descending or ascending order or else emit an...
Since const generics MVP hit the stable, it should be possible to implement `AsStd*` for sized arrays. The corresponding `Std*` type would need to be a sized array of a...
Currently, the traits are disconnected, which means the only useful way to implement them is a derive macro. I propose a following minor breaking interface change. ``` pub unsafe trait...