Skip to content

Commit

Permalink
Better names
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Oct 18, 2023
1 parent 3d8cfd7 commit 4448ca5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wgpu-hal/src/auxil/dxgi/factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub enum DxgiFactoryType {
Factory6,
}

fn filter_adapter(adapter: &dxgi::IDXGIAdapter1) -> bool {
fn should_keep_adapter(adapter: &dxgi::IDXGIAdapter1) -> bool {
let mut desc = unsafe { std::mem::zeroed() };
unsafe { adapter.GetDesc1(&mut desc) };

Expand Down Expand Up @@ -58,7 +58,7 @@ pub fn enumerate_adapters(factory: d3d12::DxgiFactory) -> Vec<d3d12::DxgiAdapter
break;
}

if !filter_adapter(&adapter4) {
if !should_keep_adapter(&adapter4) {
continue;
}

Expand All @@ -78,7 +78,7 @@ pub fn enumerate_adapters(factory: d3d12::DxgiFactory) -> Vec<d3d12::DxgiAdapter
break;
}

if !filter_adapter(&adapter1) {
if !should_keep_adapter(&adapter1) {
continue;
}

Expand Down

0 comments on commit 4448ca5

Please sign in to comment.