Skip to content

Commit

Permalink
Store PotentialAdapters as Vec, not ArrayVec
Browse files Browse the repository at this point in the history
  • Loading branch information
marceline-cramer committed Dec 6, 2023
1 parent 0e01337 commit 68bdaf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Per Keep a Changelog there are 6 main categories of changes:
- Fixed building with `profiling/profile-with-tracing`. @SparkyPotato
- Fixed panic when a mesh object with a skeleton was despawned. @setzer22
- Fixed forward pass not writing to depth when no depth prepass was used. @IsseW
- Fixed panic in IAD creation when system has more than 4 wgpu adapters. @marceline-cramer

## v0.3.0

Expand Down
5 changes: 2 additions & 3 deletions rend3/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use std::sync::Arc;

use arrayvec::ArrayVec;
use wgpu::{
Adapter, AdapterInfo, Backend, Backends, BufferAddress, Device, DeviceDescriptor, DeviceType, Features,
Gles3MinorVersion, Instance, InstanceFlags, Limits, Queue,
Expand Down Expand Up @@ -463,7 +462,7 @@ pub async fn create_iad(
flags: InstanceFlags::default(),
});

let mut valid_adapters = FastHashMap::<Backend, ArrayVec<PotentialAdapter<Adapter>, 4>>::default();
let mut valid_adapters = FastHashMap::<Backend, Vec<PotentialAdapter<Adapter>>>::default();

for backend in &default_backend_order {
profiling::scope!("enumerating backend");
Expand All @@ -479,7 +478,7 @@ pub async fn create_iad(
.await
.into_iter();

let mut potential_adapters = ArrayVec::<PotentialAdapter<Adapter>, 4>::new();
let mut potential_adapters = Vec::new();
for (idx, adapter) in adapters.enumerate() {
let info = adapter.get_info();
let limits = adapter.limits();
Expand Down

0 comments on commit 68bdaf6

Please sign in to comment.