Skip to content

Commit

Permalink
Allow memory interface blocks to have offset decorations on first mem…
Browse files Browse the repository at this point in the history
…ber (#2535)
  • Loading branch information
chaynabors authored Jun 30, 2024
1 parent 582a246 commit e949e35
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions vulkano-shaders/src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit e949e35

Please sign in to comment.