pixels/examples/custom-shader
Jay Oster eede10ba42
Fix validation errors with WebGL2 backend (#335)
* Fix validation errors with WebGL2 backend

- view_formats are optional and should be empty unless a specific view format is needed.
- See: https://www.w3.org/TR/webgpu/#dom-gputexturedescriptor-viewformats
2023-01-28 11:19:45 -08:00
..
shaders Use type inference in custom_shader WGSL (#334) 2023-01-28 11:00:51 -08:00
src Fix validation errors with WebGL2 backend (#335) 2023-01-28 11:19:45 -08:00
Cargo.toml Update all dependencies in the workspace (#323) 2022-12-17 17:35:02 -08:00
README.md Add custom shader example (#100) 2020-07-19 02:18:02 -07:00

Custom Shader Example

Custom Shader Example

Running

cargo run --release --package custom-shader

About

This example is based on minimal-winit, and extends it with a custom renderer that adds white noise to the screen.