2023-01-10 14:54:54 +11:00
|
|
|
use crate::framebuffer::OutputFramebuffer;
|
2022-12-25 17:18:11 +11:00
|
|
|
use ash::vk;
|
|
|
|
|
2023-01-10 16:45:48 +11:00
|
|
|
#[rustfmt::skip]
|
|
|
|
pub static DEFAULT_MVP: &[f32; 16] = &[
|
|
|
|
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 16:11:05 +11:00
|
|
|
#[derive(Clone)]
|
2023-01-10 14:53:28 +11:00
|
|
|
pub(crate) struct RenderTarget<'a> {
|
|
|
|
pub mvp: &'a [f32; 16],
|
|
|
|
pub output: OutputFramebuffer,
|
2023-01-10 14:54:54 +11:00
|
|
|
}
|