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 });