Commit graph

34 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
d807ef367e Update wgpu to 0.5 in iced_wgpu 🎉 2020-04-07 05:48:21 +02:00
Héctor Ramón Jiménez
4e7159c22c Stop creating image pipeline when unnecessary 2020-02-28 14:38:42 +01:00
Héctor Ramón Jiménez
6cb7fb6d52 Remove unused code warnings in iced_wgpu::image 2020-02-26 20:35:39 +01:00
Héctor Ramón Jiménez
d06d06e050 Deallocate atlas entries and remove padding 2020-02-26 20:10:19 +01:00
Héctor Ramón Jiménez
48d70280eb Fix multiple issues from the refactoring
- Update texture view on grow
- Fix atlas texture coordinates
- Fix fragmented uploads
2020-02-26 18:50:13 +01:00
Héctor Ramón Jiménez
c58d94f3fd Avoid creating a vertex buffer every frame 2020-02-26 12:55:04 +01:00
Héctor Ramón Jiménez
59d45a5440 Refactor texture atlas
- Split into multiple modules
- Rename some concepts
- Change API details
2020-02-26 12:34:34 +01:00
Malte Veerman
4617da2818 Implemented automatic deallocation of texture space for dropped allocations 2020-02-25 13:27:03 +01:00
Malte Veerman
8f9f44b9e8 When deallocating the last allocation in an allocator mark its layer as empty 2020-02-25 13:27:03 +01:00
Malte Veerman
2f695ef980 Updated shaders and removed debug_stub_derive dependency 2020-02-25 13:27:03 +01:00
Malte Veerman
c0996923c6 Batch image draw calls into one with multiple instances 2020-02-25 13:26:50 +01:00
Malte Veerman
3f38835105 Implement allocating large images across multiple texture array layers. 2020-02-25 13:26:50 +01:00
Malte Veerman
2f77a6bf5a Use array of atlases instead of one growing indefinitely. 2020-02-25 13:26:50 +01:00
Malte Veerman
8562a4c986 Fixed texture bleeding 2020-02-25 13:26:50 +01:00
Malte Veerman
743637ebda Merged image and svg texture atlases into one owned by the image pipeline. 2020-02-25 13:26:50 +01:00
Malte Veerman
1bcfc9a5cc Implemented a texture atlas for images and svgs. 2020-02-25 13:26:33 +01:00
Héctor Ramón Jiménez
be14aca075 Make output format of iced_wgpu configurable 2020-02-24 20:08:40 +01:00
Héctor Ramón Jiménez
bc611cf51c Make image support optional in iced_wgpu
This reduces binary size when image rendering is not necessary a
considerable amount.
2020-01-20 11:19:42 +01:00
Héctor Ramón Jiménez
514ccf8a72 Cache Svg load result properly
This avoids trying to reload the file constantly on every frame.
2019-12-15 07:07:49 +01:00
Héctor Ramón Jiménez
232d4873ba Put svg rendering behind a feature gate
This reduces binary size when SVG supoprt is not needed.
2019-12-15 06:45:20 +01:00
Héctor Ramón Jiménez
09707f29fc Rerasterize SVGs when resized and refactor a bit 2019-12-15 06:19:07 +01:00
Malte Veerman
895eaef99b Merged svg pipeline into image 2019-12-12 01:14:54 +01:00
Héctor Ramón Jiménez
561c3641c6 Merge branch 'master' into feature/image-from-bytes 2019-12-04 04:01:12 +01:00
Héctor Ramón Jiménez
67570a0a1d Add repr(C) to GPU types 2019-12-01 19:03:05 +01:00
Héctor Ramón Jiménez
fab6d79e84 Implement basic image cache trimming in iced_wgpu 2019-11-30 02:55:14 +01:00
Héctor Ramón Jiménez
505588d585 Allow to load an image from memory
New `image::Handle` opaque type uniquely identifying some `image::Data`,
allowing reliable caching.
2019-11-29 21:44:39 +01:00
Héctor Ramón Jiménez
700390bdb2 Use explicit Uniforms type in image pipeline 2019-11-24 17:25:54 +01:00
Héctor Ramón Jiménez
1a6333c7f3 Fix copy image instance size in iced_wgpu 2019-11-24 17:25:28 +01:00
Héctor Ramón Jiménez
422e2a6194 Avoid panic when image load fails in iced_wgpu 2019-11-24 12:03:12 +01:00
Héctor Ramón Jiménez
6a0e442ad6 Write docs for iced_wgpu 2019-11-22 22:14:24 +01:00
Héctor Ramón Jiménez
298c42ac5f Replace nalgebra with glam
`glam` compiles much faster and leverages SIMD nicely.
2019-10-31 01:41:04 +01:00
Héctor Ramón Jiménez
0a0aa3edd9 Implement clipping for images 2019-10-27 02:29:23 +01:00
Héctor Ramón Jiménez
2f8e9dbe59 Remove warnings in wgpu::image 2019-10-23 02:34:30 +02:00
Héctor Ramón Jiménez
38b6c84e77 Implement basic image rendering in iced_wgpu 2019-10-23 01:21:23 +02:00