Skip to content

Commit

Permalink
metal: fix Rgb9e5Ufloat capabilities and sampler_lod_average supp…
Browse files Browse the repository at this point in the history
…ort (#2656)
  • Loading branch information
jinleili authored May 14, 2022
1 parent c1934dc commit 8e5ac75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions wgpu-hal/src/metal/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl crate::Adapter<super::Api> for super::Adapter {
} else if pc.msaa_desktop {
Tfc::SAMPLED_LINEAR
} else {
Tfc::STORAGE
Tfc::SAMPLED_LINEAR
| Tfc::COLOR_ATTACHMENT
| Tfc::COLOR_ATTACHMENT_BLEND
| Tfc::MULTISAMPLE
Expand Down Expand Up @@ -523,10 +523,7 @@ impl super::PrivateCapabilities {
MUTABLE_COMPARISON_SAMPLER_SUPPORT,
),
sampler_clamp_to_border: Self::supports_any(device, SAMPLER_CLAMP_TO_BORDER_SUPPORT),
sampler_lod_average: {
// TODO: Clarify minimum macOS version with Apple (43707452)
version.at_least((10, 13), (9, 0))
},
sampler_lod_average: { version.at_least((11, 0), (9, 0)) },
base_instance: Self::supports_any(device, BASE_INSTANCE_SUPPORT),
base_vertex_instance_drawing: Self::supports_any(device, BASE_VERTEX_INSTANCE_SUPPORT),
dual_source_blending: Self::supports_any(device, DUAL_SOURCE_BLEND_SUPPORT),
Expand Down
2 changes: 1 addition & 1 deletion wgpu-hal/src/metal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl AdapterShared {

Self {
disabilities: PrivateDisabilities::new(&device),
private_caps: PrivateCapabilities::new(&device),
private_caps,
device: Mutex::new(device),
settings: Settings::default(),
}
Expand Down

0 comments on commit 8e5ac75

Please sign in to comment.