Héctor Ramón Jiménez
23ed352e83
Fix needless borrows in image::Pipeline
2023-02-24 13:37:31 +01:00
Héctor Ramón Jiménez
363966ee9e
Refactor image::Pipeline into prepare and render architecture
2023-02-24 13:37:31 +01:00
bungoboingo
4b6d3797d4
Restructured everything to make profiling a feature of iced_winit.
2023-01-09 18:52:38 +01:00
Bingus
c5cd236b73
Initial profiling support for Iced.
2023-01-09 18:52:38 +01:00
Héctor Ramón Jiménez
b205a66347
Remove appearance from Handle
...
... and pass it directly to `Renderer::draw` instead.
2022-12-06 04:34:00 +01:00
Héctor Ramón Jiménez
0a23f518c7
Remove redundant features in iced_wgpu and iced_glow
2022-11-05 03:26:19 +01:00
Héctor Ramón Jiménez
8ce8d374b1
Refactor some image traits a bit
...
- Use `Size<u32>` were applicable.
- Rename `TextureStore` to `image::Storage`.
- Rename `TextureStoreEntry` to `image::storage::Entry`.
- Wire up `viewport_dimensions` to `iced_glow` for `Svg`.
2022-11-05 03:19:38 +01:00
Ian Douglas Scott
2c7c42ee93
Move image/svg handling into iced_graphics
...
The `TextureStore` trait is implemented by the atlas, and can also be
implemented in the glow renderer or in a software renderer.
The API here may be improved in the future, but API stability is
presumably not a huge issue since these types will only be used by
renderer backends.
2022-11-05 03:19:37 +01:00
Poly
15f794b7a8
Address Clippy lints
2022-07-09 17:07:38 +02:00
Cupnfish
c148557cab
update wgpu to 0.13
2022-07-02 15:39:42 +08:00
Héctor Ramón Jiménez
c19b673583
Run cargo fmt
2022-01-04 16:18:51 +07:00
Poly
23ef0143ed
Update wgpu 0.12
2022-01-04 16:15:44 +07:00
Poly
18753b77fc
wgpu: Update to 0.10
2021-08-19 03:06:38 +02:00
Poly
a53e7559fe
Use vertex_attr_array macro
2021-06-22 11:23:11 +02:00
Héctor Ramón
cf6af4c256
Use latest wgpu releases instead of patched sources
2021-05-19 17:18:43 +07:00
Dispersia
983aa1b366
Run cargo fmt
2021-04-12 23:23:47 -07:00
Dispersia
0722d5e3ec
add temporary fix for image wgsl
2021-04-12 23:07:58 -07:00
Dispersia
9a2c78c405
Upgrade wgpu
2021-04-11 18:55:57 -07:00
Greg V
8f126c212b
Add image format options to reduce code bloat, fixes #376
2021-02-13 15:53:24 +01:00
Héctor Ramón Jiménez
74b9ea520f
Enable filtering in wgpu::image
2021-02-06 16:04:43 +01:00
Héctor Ramón Jiménez
ffdf87fbe2
Use lowercase in wgpu labels for consistency
2021-02-06 15:39:06 +01:00
Poly
1fb60c5dcb
Fix TextureViewDimension for image
...
wgpu validation helped to find this long standing type error
2021-02-03 22:26:53 +01:00
Poly
4a6db30d47
[wgpu 0.7] Update image.rs
2021-02-03 20:24:48 +01:00
Héctor Ramón Jiménez
9d4f664c94
Update bytemuck and remove zerocopy in iced_wgpu
2020-11-10 20:06:24 +01:00
Héctor Ramón Jiménez
44118263b5
Add labels to iced_wgpu internals
2020-08-31 14:41:41 +02:00
Héctor Ramón Jiménez
3eb63762c7
Remove unnecessary create_buffer_init for uniforms
2020-08-27 19:28:03 +02:00
Héctor Ramón Jiménez
b689778ed9
Remove redundant depth bias fields in iced_wgpu
2020-08-27 19:15:05 +02:00
Héctor Ramón Jiménez
83e037829c
Update image pipeline in iced_wgpu
2020-08-27 13:41:00 +02:00
Héctor Ramón Jiménez
720e7756f2
Move Layer to iced_graphics
2020-05-19 23:19:39 +02:00
Lain-dono
b23945c78a
Change &mut wgpu::Device to &wgpu::Device ( #299 )
...
* Change `&mut wgpu::Device` to `&wgpu::Device`
* Fix for rustfmt
2020-04-16 08:06:05 +02:00
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