rust-gpu
rust-gpu copied to clipboard
🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧
I couldn't find any existing issues tracking adding support for specifying these decorations (or other decorations). Would it make sense for these to be exposed as `spirv` attributes, or as...
With recent changes to how we specify the storage class of a variable, we've managed to eliminate the need for a few of the storage class attributes in cases where...
I started looking into how `OpConvertUToPtr` can be implemented - initially for `RuntimeArray`s. Something like this works well, but is not generic: ```rust unsafe fn load_f32_runtime_array_from_handle(handle: u64) -> &'static mut...
When calling a function with a sub-slice of some other slice, the compiler throws a strange error: Small example: ``` pub fn t1(main: &[f32]){ let a = t2(&main[10..13]); } fn...
When a struct derives the `Debug` trait, compilation fails with a strange error. For instance this struct ``` #[repr(C)] #[derive(Debug, Clone, Copy)] pub struct GpuCamera2d { pub location: [f32; 2],...
### Expected Behaviour Be able to use `Option` ### Example & Steps To Reproduce Use an `Option` that contains a value larger than some threshold ```rust pub fn from_mat4(t: &Mat4)...
Due to how for loops over a range work in Rust, a lot of scaffolding code is generated that is then expected to be optimized away, but in rust-gpu, that...
Now that the full bindless mode has been stripped (#710), I would like to open up this issue so that we can all get on the same page and see...
[See the vulkan spec](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#spirvenv-capabilities) For example, when compiling for vulkan1.0 or higher, `OpCapability ImageQuery` should be included by default.
Quite often, an algorithm will have a working data size configurable by a constant, and this size is correlated with the thread group size. Here's what I would like to...