Allow memory interface blocks to have offset decorations on first member (#2535)

This commit is contained in:
Chay Nabors 2024-06-30 02:57:46 -07:00 committed by GitHub
parent 582a2466f3
commit e949e35f91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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