Skip to content

Commit e7b7246

Browse files
committed
SubmitSurfaceTextureSet should use smallvec
1 parent 313f077 commit e7b7246

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wgpu-hal/src/vulkan/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ use ash::{
4848
vk,
4949
};
5050
use parking_lot::{Mutex, RwLock};
51+
use smallvec::SmallVec;
5152

5253
use crate::RawSet;
5354

@@ -86,13 +87,13 @@ impl crate::Api for Api {
8687
}
8788

8889
pub struct SubmitSurfaceTextureSet {
89-
semaphores: ArrayVec<vk::Semaphore, 1>,
90+
semaphores: SmallVec<[vk::Semaphore; 2]>,
9091
}
9192

9293
impl RawSet<SurfaceTexture> for SubmitSurfaceTextureSet {
9394
fn new() -> Self {
9495
Self {
95-
semaphores: ArrayVec::new(),
96+
semaphores: SmallVec::new(),
9697
}
9798
}
9899

0 commit comments

Comments
 (0)