From b52d1be4302e452a45a03595f8c70411a061f920 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Mon, 17 Aug 2026 01:41:16 -0700 Subject: move the texture binding to a push descriptor with a descriptor update template, even yay this also moves us to a minimum Vulkan version of 1.4, which we understand to be widely deployed. in theory, push descriptors and update templates were available via extensions in earlier versions, but it doesn't seem worth doing the work to switch out whether we use the extensions based on the version, so we don't. Force-Push: yes Change-Id: I26db8771abf5626d9614630c66e019ea99babcac --- src/graphics/model.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/graphics/model.rs') 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), -- cgit 1.4.1