pixels/examples/custom-shader
Jay Oster 265ba2e5b3
Render API v2 (#112)
* WIP: Render API v2

* Fix doctests

* Expose all of PixelsContext (#110)

* Fix ScalingRenderer::new() taking &mut Device

* Replace getters with direct access to &mut PixelsContext

* Fix wrong reference type

* Fix unneeded mut

* Remove unnecessary mutable borrow, resurrect the shorter getter methods

* Initial port to wgpu master (0.6)
Surface creation is broken (see examples)
Does not support compressed textures

* Fix SurfaceTexture and examples

* Add support for compressed texture formats

* resize doesn't need mutability

* Update documentation

* Update wgpu

* Prepare release

* Goodbye Travis! Thanks for all the fish

Co-authored-by: JMS55 <47158642+JMS55@users.noreply.github.com>
2020-08-20 16:49:19 -07:00
..
shaders Add custom shader example (#100) 2020-07-19 02:18:02 -07:00
src Render API v2 (#112) 2020-08-20 16:49:19 -07:00
Cargo.toml Add custom shader example (#100) 2020-07-19 02:18:02 -07: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.