mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 21:24:48 +00:00
fix(ext/webgpu): use correct IDL key name (#15278)
This commit is contained in:
parent
bc4ee59246
commit
864af52a1b
4 changed files with 28 additions and 17 deletions
|
@ -408,7 +408,7 @@ pub async fn op_webgpu_request_device(
|
|||
state: Rc<RefCell<OpState>>,
|
||||
adapter_rid: ResourceId,
|
||||
label: Option<String>,
|
||||
required_features: Option<GpuRequiredFeatures>,
|
||||
required_features: GpuRequiredFeatures,
|
||||
required_limits: Option<wgpu_types::Limits>,
|
||||
) -> Result<GpuAdapterDevice, AnyError> {
|
||||
let mut state = state.borrow_mut();
|
||||
|
@ -419,8 +419,8 @@ pub async fn op_webgpu_request_device(
|
|||
|
||||
let descriptor = wgpu_types::DeviceDescriptor {
|
||||
label: label.map(Cow::from),
|
||||
features: required_features.map(Into::into).unwrap_or_default(),
|
||||
limits: required_limits.map(Into::into).unwrap_or_default(),
|
||||
features: required_features.into(),
|
||||
limits: required_limits.unwrap_or_default(),
|
||||
};
|
||||
|
||||
let (device, maybe_err) = gfx_select!(adapter => instance.adapter_request_device(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue