Commit graph

60 commits

Author SHA1 Message Date
Jay Oster 64cd487c37 Merge Pixels::update() with Pixels::render()
- Adds `PixelsBuilder::texture_format()` to configure the format for the pixel buffer
2019-10-03 23:16:23 -07:00
Jay Oster d0391be62a Initial pass with texture rendering
- The example app generates a scaled version of pixel Ferris as a test.
- TODO:
  - Pixel aspect ratio is still unsupported
  - The `RenderPass` trait is incomplete
2019-10-02 20:22:20 -07:00
Jay Oster 38ce5c186d Rewrite all doc comments to wrap at 100 characters (was 80) 2019-10-02 01:07:11 -07:00
Jay Oster 70306c5cfd Add RenderPass trait and refactor PixelsBuilder 2019-10-02 00:53:41 -07:00
Jay Oster 2ec43fccd1 Cleanly separate the two texture dimensions
- The pixel buffer dimensions
- The surface texture dimensions
2019-10-01 22:00:37 -07:00
Jay Oster 44f5b67c9e Remove shaders from PixelsOptions
- This is the first step toward refactoring the rendering pipeline
- These will be replaced by optional render passes
2019-10-01 18:36:40 -07:00
Jay Oster 2ec303812f Remove deprecated error variants 2019-09-29 17:42:40 -07:00
Jay Oster 337241c866 Switch to vk_shader_macros 2019-09-29 17:40:05 -07:00
Jay Oster c4d762d5f5 Rename the Error type and add docs for the variants. 2019-09-25 23:47:04 -07:00
Jay Oster cc4976079b Initial commit.
- Just a copy of the wgpu `hello-triangle` example for now... more to come!
2019-09-25 23:07:30 -07:00