fixup! Update arrayvec.

This commit is contained in:
Josh Matthews 2022-04-01 01:44:27 -04:00
parent 9eaa27c946
commit b3742b779c
2 changed files with 6 additions and 3 deletions

View file

@ -2534,7 +2534,8 @@ impl PropertyDeclaration {
}
}
type SubpropertiesVec<T> = ArrayVec<T, ${max(len(s.sub_properties) for s in data.shorthands_except_all()) \
type SubpropertiesVec<T> = ArrayVec<T, ${max(len(s.sub_properties) \
for s in data.shorthands_except_all()) \
if data.shorthands_except_all() else 0}>;
/// A stack-allocated vector of `PropertyDeclaration`

View file

@ -755,10 +755,12 @@ impl<'a> WGPU<'a> {
size: Size2D::new(width, height),
unassigned_buffer_ids: buffer_ids,
available_buffer_ids: ArrayVec::<
id::BufferId, PRESENTATION_BUFFER_COUNT,
id::BufferId,
PRESENTATION_BUFFER_COUNT,
>::new(),
queued_buffer_ids: ArrayVec::<
id::BufferId, PRESENTATION_BUFFER_COUNT,
id::BufferId,
PRESENTATION_BUFFER_COUNT,
>::new(),
buffer_stride,
image_key,