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.

24 lines
521B

  1. use ash::vk;
  2. use cgmath::Matrix4;
  3. #[repr(C, align(16))]
  4. pub struct Uniforms {
  5. pub object: Matrix4<f32>,
  6. pub camera: Matrix4<f32>,
  7. pub projection: Matrix4<f32>,
  8. }
  9. impl Uniforms {
  10. pub const BIND_DESC: [vk::DescriptorSetLayoutBinding; 1] = [
  11. vk::DescriptorSetLayoutBinding {
  12. binding: 0,
  13. descriptor_type: vk::DescriptorType::UNIFORM_BUFFER,
  14. descriptor_count: 1,
  15. stage_flags: vk::ShaderStageFlags::VERTEX,
  16. p_immutable_samplers: std::ptr::null(),
  17. }
  18. ];
  19. }
  20. // EOF