2020-02-09 03:25:13 +01:00
|
|
|
use crate::Viewport;
|
|
|
|
|
|
|
|
|
|
/// A rendering target.
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
|
pub struct Target<'a> {
|
2020-02-09 03:44:16 +01:00
|
|
|
/// The texture where graphics will be rendered.
|
2020-02-09 03:25:13 +01:00
|
|
|
pub texture: &'a wgpu::TextureView,
|
2020-02-09 03:44:16 +01:00
|
|
|
|
|
|
|
|
/// The viewport of the target.
|
|
|
|
|
///
|
|
|
|
|
/// Most of the time, you will want this to match the dimensions of the
|
|
|
|
|
/// texture.
|
2020-02-09 03:25:13 +01:00
|
|
|
pub viewport: &'a Viewport,
|
|
|
|
|
}
|