librashader/librashader-runtime-vk/src/render_target.rs

18 lines
350 B
Rust
Raw Normal View History

2023-01-12 15:05:08 +11:00
use crate::framebuffer::OutputImage;
2022-12-25 17:18:11 +11:00
2023-01-10 16:45:48 +11:00
#[rustfmt::skip]
pub(crate) static DEFAULT_MVP: &[f32; 16] = &[
2023-01-10 16:45:48 +11:00
2f32, 0.0, 0.0, 0.0,
0.0, 2.0, 0.0, 0.0,
2023-01-29 05:11:14 +11:00
0.0, 0.0, 0.0, 0.0,
2023-01-10 16:45:48 +11:00
-1.0, -1.0, 0.0, 1.0,
];
#[derive(Clone)]
pub(crate) struct RenderTarget<'a> {
2023-01-11 18:36:37 +11:00
pub x: f32,
pub y: f32,
pub mvp: &'a [f32; 16],
2023-01-12 15:05:08 +11:00
pub output: OutputImage,
2023-01-10 14:54:54 +11:00
}