From f557b810f5931e69a9a35353b20fff1b07480715 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 19 May 2023 03:58:25 +0200 Subject: Keep `image` pipeline decoupled from `quad` in `iced_wgpu` --- wgpu/src/quad.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wgpu/src/quad.rs') 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; 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], }, -- cgit