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

19 lines
375 B
Rust
Raw Normal View History

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