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

17 lines
336 B
Rust
Raw Normal View History

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,
];
#[derive(Clone)]
pub(crate) struct RenderTarget<'a> {
pub mvp: &'a [f32; 16],
pub output: OutputFramebuffer,
2023-01-10 14:54:54 +11:00
}