summary refs log tree commit diff
path: root/src/graphics/model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/model.rs')
-rw-r--r--src/graphics/model.rs12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/graphics/model.rs b/src/graphics/model.rs
index 9c62d51..096de86 100644
--- a/src/graphics/model.rs
+++ b/src/graphics/model.rs
@@ -61,8 +61,7 @@ impl Model {
 
   #[allow(unsafe_code)]
   pub fn render(&self, time: f32, device: &Device, render: &Render,
-                command_buffer: &vk::CommandBuffer,
-                descriptor_set: &vk::DescriptorSet)
+                command_buffer: &vk::CommandBuffer)
   {
     unsafe {
       device.cmd_bind_vertex_buffers(*command_buffer, 0,
@@ -74,15 +73,6 @@ impl Model {
                                    0, vk::IndexType::UINT32)
     };
 
-    unsafe {
-      device.cmd_bind_descriptor_sets(*command_buffer,
-                                      vk::PipelineBindPoint::GRAPHICS,
-                                      render.pipeline_layout,
-                                      0,
-                                      &[*descriptor_set],
-                                      &[])
-    };
-
     let scale = Vec3::new(1.0, 1.0, 1.0);
     let model = Transformation {
       rotation: Vec4::rotation_quaternion(&Vec3::new(0.0, 1.0, 0.0),