|
- 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
|