Allow iced_wgpu to render to any TextureView

This commit is contained in:
Héctor Ramón Jiménez 2020-02-09 03:25:13 +01:00
parent 95880ca74b
commit f1e20a61f1
13 changed files with 355 additions and 240 deletions

8
wgpu/src/target.rs Normal file
View file

@ -0,0 +1,8 @@
use crate::Viewport;
/// A rendering target.
#[derive(Debug)]
pub struct Target<'a> {
pub texture: &'a wgpu::TextureView,
pub viewport: &'a Viewport,
}