mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 13:14:48 +00:00
feat(ops): custom arity (#13949)
Also cleanup & drop ignored wildcard op-args
This commit is contained in:
parent
9f494dc405
commit
88d0f01948
55 changed files with 99 additions and 498 deletions
|
@ -245,7 +245,6 @@ pub struct GpuAdapterDevice {
|
|||
pub async fn op_webgpu_request_adapter(
|
||||
state: Rc<RefCell<OpState>>,
|
||||
args: RequestAdapterArgs,
|
||||
_: (),
|
||||
) -> Result<GpuAdapterDeviceOrErr, AnyError> {
|
||||
let mut state = state.borrow_mut();
|
||||
check_unstable(&state, "navigator.gpu.requestAdapter");
|
||||
|
@ -444,7 +443,6 @@ impl From<GpuRequiredFeatures> for wgpu_types::Features {
|
|||
pub async fn op_webgpu_request_device(
|
||||
state: Rc<RefCell<OpState>>,
|
||||
args: RequestDeviceArgs,
|
||||
_: (),
|
||||
) -> Result<GpuAdapterDevice, AnyError> {
|
||||
let mut state = state.borrow_mut();
|
||||
let adapter_resource = state
|
||||
|
@ -545,7 +543,6 @@ impl From<GpuQueryType> for wgpu_types::QueryType {
|
|||
pub fn op_webgpu_create_query_set(
|
||||
state: &mut OpState,
|
||||
args: CreateQuerySetArgs,
|
||||
_: (),
|
||||
) -> Result<WebGpuResult, AnyError> {
|
||||
let device_resource =
|
||||
state.resource_table.get::<WebGpuDevice>(args.device_rid)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue