[vello_encoding] Declare padding in binding types to match WGSL layout

This commit is contained in:
Arman Uguray 2023-04-13 20:17:19 -07:00
parent 9f27fae64e
commit 3ff490fc13
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@ pub struct ClipBic {
#[repr(C)]
pub struct ClipElement {
pub parent_ix: u32,
_padding: [u8; 12],
pub bbox: [f32; 4],
}

View file

@ -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.