mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 20:31:29 +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)]
|
#[repr(C)]
|
||||||
pub struct ClipElement {
|
pub struct ClipElement {
|
||||||
pub parent_ix: u32,
|
pub parent_ix: u32,
|
||||||
|
_padding: [u8; 12],
|
||||||
pub bbox: [f32; 4],
|
pub bbox: [f32; 4],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -209,6 +209,7 @@ pub struct Path {
|
||||||
pub bbox: [f32; 4],
|
pub bbox: [f32; 4],
|
||||||
/// Offset (in u32s) to tile rectangle.
|
/// Offset (in u32s) to tile rectangle.
|
||||||
pub tiles: u32,
|
pub tiles: u32,
|
||||||
|
_padding: [u32; 3],
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Tile object.
|
/// Tile object.
|
||||||
|
|
Loading…
Reference in a new issue