librashader/librashader-runtime-vk/src/rendertarget.rs
2023-01-10 00:45:48 -05:00

17 lines
336 B
Rust

use crate::framebuffer::OutputFramebuffer;
use ash::vk;
#[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,
];
#[derive(Clone)]
pub(crate) struct RenderTarget<'a> {
pub mvp: &'a [f32; 16],
pub output: OutputFramebuffer,
}