rust-gpu
rust-gpu copied to clipboard
🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧
Although we only support SpirV as a target right now and implementing a DXIL backend would still be a thing of the distant future, it doesn't make much sense to...
The first commit is a pretty large refactor that ended up a bit worse than I expected. We might just want to have this instead (and call it in a...
Part of #858
### Expected Behaviour Reassigning to a variable should work, just as it does with f32s. ### Example & Steps To Reproduce Run the compute example (just used as it's already...
Cargo build scripts have the ability to produce output through Cargo via [`cargo:warning=MESSAGE`](https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargo-warning) *even when successful*. We should probably make `spirv-builder` transform `stderr` lines from its nested `cargo build` (of...
See PR https://github.com/EmbarkStudios/rust-gpu/pull/513 that @Arc-blroth opened. This PR builds on top of that to support structs and 3 or 4 component 64-bit scalar type vectors (see https://github.com/EmbarkStudios/rust-gpu/pull/513#pullrequestreview-628664056).
When trying to compile a shader with a runtime array descriptor without having `Capability::RuntimeDescriptorArray` enabled on `SpirvBuilder` emits an unintuitive error. For instance the following main function: ```rust #[spirv(fragment)] pub...
basically is it possible to have ``` #[repr(transparent)] pub struct Test([u32]); #[spirv(compute(threads(8, 8)))] pub fn entry( #[spirv(storage_buffer, descriptor_set = 0, binding = 0)] data: &Test, ) { } ```
try fixing https://github.com/EmbarkStudios/rust-gpu/issues/873 . context is this https://github.com/EmbarkStudios/rust-gpu/pull/690#pullrequestreview-719958024 . The tests I added still errors, but a different one compared to what I am trying to fix. But the wired...