mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 22:34:43 +00:00
Allow memory interface blocks to have offset decorations on first member (#2535)
This commit is contained in:
parent
582a2466f3
commit
e949e35f91
@ -844,11 +844,6 @@ impl TypeStruct {
|
|||||||
if last.offset + last_size > offset {
|
if last.offset + last_size > offset {
|
||||||
bail!(shader.source, "struct members must not overlap");
|
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 });
|
members.push(Member { ident, ty, offset });
|
||||||
|
Loading…
Reference in New Issue
Block a user