Skip to content

Commit

Permalink
SubmitSurfaceTextureSet should use smallvec
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Jan 16, 2024
1 parent 313f077 commit e7b7246
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wgpu-hal/src/vulkan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ use ash::{
vk,
};
use parking_lot::{Mutex, RwLock};
use smallvec::SmallVec;

use crate::RawSet;

Expand Down Expand Up @@ -86,13 +87,13 @@ impl crate::Api for Api {
}

pub struct SubmitSurfaceTextureSet {
semaphores: ArrayVec<vk::Semaphore, 1>,
semaphores: SmallVec<[vk::Semaphore; 2]>,
}

impl RawSet<SurfaceTexture> for SubmitSurfaceTextureSet {
fn new() -> Self {
Self {
semaphores: ArrayVec::new(),
semaphores: SmallVec::new(),
}
}

Expand Down

0 comments on commit e7b7246

Please sign in to comment.