Keep image pipeline decoupled from quad in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2023-05-19 03:58:25 +02:00
parent 49353bc4ea
commit f557b810f5
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 40 additions and 8 deletions

View file

@ -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],
},