diff options
author | 2023-05-19 03:58:25 +0200 | |
---|---|---|
committer | 2023-05-19 03:59:58 +0200 | |
commit | f557b810f5931e69a9a35353b20fff1b07480715 (patch) | |
tree | 395af28ef1c06cea532ff45947156e598e9e9e7b /wgpu/src/quad.rs | |
parent | 49353bc4ea2e93e5d70f026e7eda169987b7c1c7 (diff) | |
download | iced-f557b810f5931e69a9a35353b20fff1b07480715.tar.gz iced-f557b810f5931e69a9a35353b20fff1b07480715.tar.bz2 iced-f557b810f5931e69a9a35353b20fff1b07480715.zip |
Keep `image` pipeline decoupled from `quad` in `iced_wgpu`
Diffstat (limited to 'wgpu/src/quad.rs')
-rw-r--r-- | wgpu/src/quad.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wgpu/src/quad.rs b/wgpu/src/quad.rs index 31bf2b85..83ea8e1f 100644 --- a/wgpu/src/quad.rs +++ b/wgpu/src/quad.rs @@ -475,7 +475,7 @@ mod gradient { } } -pub(crate) fn color_target_state( +fn color_target_state( format: wgpu::TextureFormat, ) -> [Option<wgpu::ColorTargetState>; 1] { [Some(wgpu::ColorTargetState { @@ -516,9 +516,9 @@ impl Vertex { } } -pub(crate) const INDICES: [u16; 6] = [0, 1, 2, 0, 2, 3]; +const INDICES: [u16; 6] = [0, 1, 2, 0, 2, 3]; -pub(crate) const VERTICES: [Vertex; 4] = [ +const VERTICES: [Vertex; 4] = [ Vertex { _position: [0.0, 0.0], }, |