From e949e35f91b475f86627fa0befa8c0703e9e4ac0 Mon Sep 17 00:00:00 2001 From: Chay Nabors Date: Sun, 30 Jun 2024 02:57:46 -0700 Subject: [PATCH] Allow memory interface blocks to have offset decorations on first member (#2535) --- vulkano-shaders/src/structs.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vulkano-shaders/src/structs.rs b/vulkano-shaders/src/structs.rs index 06aa2bfc..e79edcb3 100644 --- a/vulkano-shaders/src/structs.rs +++ b/vulkano-shaders/src/structs.rs @@ -844,11 +844,6 @@ impl TypeStruct { if last.offset + last_size > offset { bail!(shader.source, "struct members must not overlap"); } - } else if offset != 0 { - bail!( - shader.source, - "expected struct member at index 0 to have an `Offset` decoration of 0", - ); } members.push(Member { ident, ty, offset });