mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-08 20:01:30 +11:00
[vello_encoding] Declare padding in binding types to match WGSL layout
This commit is contained in:
parent
9f27fae64e
commit
3ff490fc13
|
@ -16,6 +16,7 @@ pub struct ClipBic {
|
|||
#[repr(C)]
|
||||
pub struct ClipElement {
|
||||
pub parent_ix: u32,
|
||||
_padding: [u8; 12],
|
||||
pub bbox: [f32; 4],
|
||||
}
|
||||
|
||||
|
|
|
@ -209,6 +209,7 @@ pub struct Path {
|
|||
pub bbox: [f32; 4],
|
||||
/// Offset (in u32s) to tile rectangle.
|
||||
pub tiles: u32,
|
||||
_padding: [u32; 3],
|
||||
}
|
||||
|
||||
/// Tile object.
|
||||
|
|
Loading…
Reference in a new issue