Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
petamoriken committed Nov 14, 2024
1 parent 0176c91 commit 9ece548
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/webgpu/01_webgpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ class GPUAdapter {
/** @returns {boolean} */
get isFallbackAdapter() {
webidl.assertBranded(this, GPUAdapterPrototype);
return this[_adapter].isFallback;
return this[_adapter].isFallbackAdapter;
}

/** @returns {GPUAdapterInfo} */
Expand Down
4 changes: 2 additions & 2 deletions ext/webgpu/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ pub struct GpuAdapterRes {
rid: ResourceId,
limits: wgpu_types::Limits,
features: Vec<&'static str>,
is_fallback: bool,
is_fallback_adapter: bool,
}

#[derive(Serialize)]
Expand Down Expand Up @@ -466,7 +466,7 @@ pub fn op_webgpu_request_adapter(
features,
limits: adapter_limits,
// TODO(lucacasonato): report correctly from wgpu
is_fallback: false,
is_fallback_adapter: false,
}))
}

Expand Down

0 comments on commit 9ece548

Please sign in to comment.