Allow iced_wgpu to render to any TextureView
This commit is contained in:
parent
95880ca74b
commit
f1e20a61f1
13 changed files with 355 additions and 240 deletions
8
wgpu/src/target.rs
Normal file
8
wgpu/src/target.rs
Normal 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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue