You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
521 B

use ash::vk;
use cgmath::Matrix4;
#[repr(C, align(16))]
pub struct Uniforms {
pub object: Matrix4<f32>,
pub camera: Matrix4<f32>,
pub projection: Matrix4<f32>,
}
impl Uniforms {
pub const BIND_DESC: [vk::DescriptorSetLayoutBinding; 1] = [
vk::DescriptorSetLayoutBinding {
binding: 0,
descriptor_type: vk::DescriptorType::UNIFORM_BUFFER,
descriptor_count: 1,
stage_flags: vk::ShaderStageFlags::VERTEX,
p_immutable_samplers: std::ptr::null(),
}
];
}
// EOF