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]
|
2023-01-10 19:36:07 -05:00
|
|
|
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,
|
|
|
|
];
|
|
|
|
|
2023-01-10 00:11:05 -05:00
|
|
|
#[derive(Clone)]
|
2023-01-09 22:53:28 -05:00
|
|
|
pub(crate) struct RenderTarget<'a> {
|
2023-01-11 02:36:37 -05:00
|
|
|
pub x: f32,
|
|
|
|
pub y: f32,
|
2023-01-09 22:53:28 -05:00
|
|
|
pub mvp: &'a [f32; 16],
|
|
|
|
pub output: OutputFramebuffer,
|
2023-01-09 22:54:54 -05:00
|
|
|
}
|