shame
shame copied to clipboard
A shader EDSL for writing render and compute pipelines in rust
Replace the `Index` and `IndexMut` implementations of `PoolRefMut` with fallible indexing, so that no panics can ever happen from a generation check failing. That way we can be more confident...
the trait `sm::CpuAligned` is not public and not implemented for `!Sized + sm::CpuLayout` structs. as of now, the following code doesn't compile ```rust #[derive(sm::CpuLayout)] #[repr(C)] struct Unsized { a: f32,...
create an example that shows the usage of `shame_wgpu`'s `bind_group!` macro.
There should be an example crate that shows how to set up hot-reloading. Maybe even 2 crates - [ ] hot reloading via a separate binary crate that sends the...
the `WorkGroup::thread_id` docs say ```rust /// the 1-dimensional numeric index of a thread within its workgroup. /// /// It lies in the range `shame::zero()..self.thread_grid_size` /// /// this value is different...
Wgsl has subgroup operations now https://www.w3.org/TR/WGSL/#subgroup-ops we should add them to the `shame` api ### Steps - [ ] define expr enum `SubgroupOperations` containing all the functions - [ ]...
Wgsl has quad operations now https://www.w3.org/TR/WGSL/#quad-builtin-functions we should add them to the `shame` api ### Steps - [ ] define expr enum `QuadOperations` containing all the functions as variants -...
this program creates an error message that is technically correct, but not ideal for guiding the user to the required fix: ```rust use shame as sm; fn main() -> Result...
when pipeline encoding errors are triggered, they normally are displayed with an error excerpt. e.g. if we modify the api_showcase example to trigger an error and use ``` cargo run...