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/shader_data.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/shader_data.rs') diff --git a/src/shader_data.rs b/src/shader_data.rs index 892260d..96e6a1b 100644 --- a/src/shader_data.rs +++ b/src/shader_data.rs @@ -27,6 +27,12 @@ pub struct VertexPushBlock { pub model: Transformation, } +#[repr(C)] +#[derive(Clone, Debug)] +pub struct TexturePushBlock { + pub image_info: vk::DescriptorImageInfo, +} + impl Vertex { pub const fn new(position: Vec3, color: Vec3, texture_coordinates: Vec2) -- cgit 1.4.1