diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-03-14 23:38:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 23:38:53 +0100 |
commit | 88d0f01948b68f4a4d87e02a5138e94ac0a6eaea (patch) | |
tree | 2b50e5d2c6990c94f47e604281f3557b3efd9736 /ext/webgpu/src | |
parent | 9f494dc405afc4b1b29fa4c813bd5751f26aaa36 (diff) |
feat(ops): custom arity (#13949)
Also cleanup & drop ignored wildcard op-args
Diffstat (limited to 'ext/webgpu/src')
-rw-r--r-- | ext/webgpu/src/binding.rs | 3 | ||||
-rw-r--r-- | ext/webgpu/src/buffer.rs | 2 | ||||
-rw-r--r-- | ext/webgpu/src/bundle.rs | 12 | ||||
-rw-r--r-- | ext/webgpu/src/command_encoder.rs | 14 | ||||
-rw-r--r-- | ext/webgpu/src/compute_pass.rs | 11 | ||||
-rw-r--r-- | ext/webgpu/src/lib.rs | 3 | ||||
-rw-r--r-- | ext/webgpu/src/pipeline.rs | 4 | ||||
-rw-r--r-- | ext/webgpu/src/queue.rs | 1 | ||||
-rw-r--r-- | ext/webgpu/src/render_pass.rs | 20 | ||||
-rw-r--r-- | ext/webgpu/src/sampler.rs | 1 | ||||
-rw-r--r-- | ext/webgpu/src/shader.rs | 1 | ||||
-rw-r--r-- | ext/webgpu/src/texture.rs | 2 |
12 files changed, 0 insertions, 74 deletions
diff --git a/ext/webgpu/src/binding.rs b/ext/webgpu/src/binding.rs index 7370f8034..cb0d9e034 100644 --- a/ext/webgpu/src/binding.rs +++ b/ext/webgpu/src/binding.rs @@ -182,7 +182,6 @@ pub struct CreateBindGroupLayoutArgs { pub fn op_webgpu_create_bind_group_layout( state: &mut OpState, args: CreateBindGroupLayoutArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let device_resource = state @@ -226,7 +225,6 @@ pub struct CreatePipelineLayoutArgs { pub fn op_webgpu_create_pipeline_layout( state: &mut OpState, args: CreatePipelineLayoutArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let device_resource = state @@ -278,7 +276,6 @@ pub struct CreateBindGroupArgs { pub fn op_webgpu_create_bind_group( state: &mut OpState, args: CreateBindGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let device_resource = state diff --git a/ext/webgpu/src/buffer.rs b/ext/webgpu/src/buffer.rs index ce3a78d01..24bd98efb 100644 --- a/ext/webgpu/src/buffer.rs +++ b/ext/webgpu/src/buffer.rs @@ -46,7 +46,6 @@ pub struct CreateBufferArgs { pub fn op_webgpu_create_buffer( state: &mut OpState, args: CreateBufferArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let device_resource = state @@ -83,7 +82,6 @@ pub struct BufferGetMapAsyncArgs { pub async fn op_webgpu_buffer_get_map_async( state: Rc<RefCell<OpState>>, args: BufferGetMapAsyncArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let (sender, receiver) = oneshot::channel::<Result<(), AnyError>>(); diff --git a/ext/webgpu/src/bundle.rs b/ext/webgpu/src/bundle.rs index 4a0807302..0c1f82202 100644 --- a/ext/webgpu/src/bundle.rs +++ b/ext/webgpu/src/bundle.rs @@ -44,7 +44,6 @@ pub struct CreateRenderBundleEncoderArgs { pub fn op_webgpu_create_render_bundle_encoder( state: &mut OpState, args: CreateRenderBundleEncoderArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let device_resource = state .resource_table @@ -105,7 +104,6 @@ pub struct RenderBundleEncoderFinishArgs { pub fn op_webgpu_render_bundle_encoder_finish( state: &mut OpState, args: RenderBundleEncoderFinishArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_bundle_encoder_resource = state @@ -142,7 +140,6 @@ pub struct RenderBundleEncoderSetBindGroupArgs { pub fn op_webgpu_render_bundle_encoder_set_bind_group( state: &mut OpState, args: RenderBundleEncoderSetBindGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let bind_group_resource = state @@ -197,7 +194,6 @@ pub struct RenderBundleEncoderPushDebugGroupArgs { pub fn op_webgpu_render_bundle_encoder_push_debug_group( state: &mut OpState, args: RenderBundleEncoderPushDebugGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_bundle_encoder_resource = state @@ -227,7 +223,6 @@ pub struct RenderBundleEncoderPopDebugGroupArgs { pub fn op_webgpu_render_bundle_encoder_pop_debug_group( state: &mut OpState, args: RenderBundleEncoderPopDebugGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_bundle_encoder_resource = state @@ -252,7 +247,6 @@ pub struct RenderBundleEncoderInsertDebugMarkerArgs { pub fn op_webgpu_render_bundle_encoder_insert_debug_marker( state: &mut OpState, args: RenderBundleEncoderInsertDebugMarkerArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_bundle_encoder_resource = state @@ -283,7 +277,6 @@ pub struct RenderBundleEncoderSetPipelineArgs { pub fn op_webgpu_render_bundle_encoder_set_pipeline( state: &mut OpState, args: RenderBundleEncoderSetPipelineArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pipeline_resource = state @@ -316,7 +309,6 @@ pub struct RenderBundleEncoderSetIndexBufferArgs { pub fn op_webgpu_render_bundle_encoder_set_index_buffer( state: &mut OpState, args: RenderBundleEncoderSetIndexBufferArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let buffer_resource = state .resource_table @@ -353,7 +345,6 @@ pub struct RenderBundleEncoderSetVertexBufferArgs { pub fn op_webgpu_render_bundle_encoder_set_vertex_buffer( state: &mut OpState, args: RenderBundleEncoderSetVertexBufferArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let buffer_resource = state .resource_table @@ -388,7 +379,6 @@ pub struct RenderBundleEncoderDrawArgs { pub fn op_webgpu_render_bundle_encoder_draw( state: &mut OpState, args: RenderBundleEncoderDrawArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_bundle_encoder_resource = state @@ -421,7 +411,6 @@ pub struct RenderBundleEncoderDrawIndexedArgs { pub fn op_webgpu_render_bundle_encoder_draw_indexed( state: &mut OpState, args: RenderBundleEncoderDrawIndexedArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_bundle_encoder_resource = state @@ -452,7 +441,6 @@ pub struct RenderBundleEncoderDrawIndirectArgs { pub fn op_webgpu_render_bundle_encoder_draw_indirect( state: &mut OpState, args: RenderBundleEncoderDrawIndirectArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let buffer_resource = state .resource_table diff --git a/ext/webgpu/src/command_encoder.rs b/ext/webgpu/src/command_encoder.rs index c81b2abf6..dc777a85d 100644 --- a/ext/webgpu/src/command_encoder.rs +++ b/ext/webgpu/src/command_encoder.rs @@ -41,7 +41,6 @@ pub struct CreateCommandEncoderArgs { pub fn op_webgpu_create_command_encoder( state: &mut OpState, args: CreateCommandEncoderArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let device_resource = state @@ -102,7 +101,6 @@ pub struct CommandEncoderBeginRenderPassArgs { pub fn op_webgpu_command_encoder_begin_render_pass( state: &mut OpState, args: CommandEncoderBeginRenderPassArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let command_encoder_resource = state .resource_table @@ -221,7 +219,6 @@ pub struct CommandEncoderBeginComputePassArgs { pub fn op_webgpu_command_encoder_begin_compute_pass( state: &mut OpState, args: CommandEncoderBeginComputePassArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let command_encoder_resource = state .resource_table @@ -260,7 +257,6 @@ pub struct CommandEncoderCopyBufferToBufferArgs { pub fn op_webgpu_command_encoder_copy_buffer_to_buffer( state: &mut OpState, args: CommandEncoderCopyBufferToBufferArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let command_encoder_resource = state @@ -319,7 +315,6 @@ pub struct CommandEncoderCopyBufferToTextureArgs { pub fn op_webgpu_command_encoder_copy_buffer_to_texture( state: &mut OpState, args: CommandEncoderCopyBufferToTextureArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let command_encoder_resource = state @@ -370,7 +365,6 @@ pub struct CommandEncoderCopyTextureToBufferArgs { pub fn op_webgpu_command_encoder_copy_texture_to_buffer( state: &mut OpState, args: CommandEncoderCopyTextureToBufferArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let command_encoder_resource = state @@ -425,7 +419,6 @@ pub struct CommandEncoderCopyTextureToTextureArgs { pub fn op_webgpu_command_encoder_copy_texture_to_texture( state: &mut OpState, args: CommandEncoderCopyTextureToTextureArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let command_encoder_resource = state @@ -474,7 +467,6 @@ pub struct CommandEncoderClearBufferArgs { pub fn op_webgpu_command_encoder_clear_buffer( state: &mut OpState, args: CommandEncoderClearBufferArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let command_encoder_resource = state @@ -504,7 +496,6 @@ pub struct CommandEncoderPushDebugGroupArgs { pub fn op_webgpu_command_encoder_push_debug_group( state: &mut OpState, args: CommandEncoderPushDebugGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let command_encoder_resource = state @@ -526,7 +517,6 @@ pub struct CommandEncoderPopDebugGroupArgs { pub fn op_webgpu_command_encoder_pop_debug_group( state: &mut OpState, args: CommandEncoderPopDebugGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let command_encoder_resource = state @@ -548,7 +538,6 @@ pub struct CommandEncoderInsertDebugMarkerArgs { pub fn op_webgpu_command_encoder_insert_debug_marker( state: &mut OpState, args: CommandEncoderInsertDebugMarkerArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let command_encoder_resource = state @@ -574,7 +563,6 @@ pub struct CommandEncoderWriteTimestampArgs { pub fn op_webgpu_command_encoder_write_timestamp( state: &mut OpState, args: CommandEncoderWriteTimestampArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let command_encoder_resource = state @@ -607,7 +595,6 @@ pub struct CommandEncoderResolveQuerySetArgs { pub fn op_webgpu_command_encoder_resolve_query_set( state: &mut OpState, args: CommandEncoderResolveQuerySetArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let command_encoder_resource = state @@ -642,7 +629,6 @@ pub struct CommandEncoderFinishArgs { pub fn op_webgpu_command_encoder_finish( state: &mut OpState, args: CommandEncoderFinishArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let command_encoder_resource = state .resource_table diff --git a/ext/webgpu/src/compute_pass.rs b/ext/webgpu/src/compute_pass.rs index e6ebdc098..9f6394f7b 100644 --- a/ext/webgpu/src/compute_pass.rs +++ b/ext/webgpu/src/compute_pass.rs @@ -31,7 +31,6 @@ pub struct ComputePassSetPipelineArgs { pub fn op_webgpu_compute_pass_set_pipeline( state: &mut OpState, args: ComputePassSetPipelineArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let compute_pipeline_resource = state @@ -62,7 +61,6 @@ pub struct ComputePassDispatchArgs { pub fn op_webgpu_compute_pass_dispatch( state: &mut OpState, args: ComputePassDispatchArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let compute_pass_resource = state .resource_table @@ -90,7 +88,6 @@ pub struct ComputePassDispatchIndirectArgs { pub fn op_webgpu_compute_pass_dispatch_indirect( state: &mut OpState, args: ComputePassDispatchIndirectArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let buffer_resource = state .resource_table @@ -120,7 +117,6 @@ pub struct ComputePassBeginPipelineStatisticsQueryArgs { pub fn op_webgpu_compute_pass_begin_pipeline_statistics_query( state: &mut OpState, args: ComputePassBeginPipelineStatisticsQueryArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let compute_pass_resource = state .resource_table @@ -148,7 +144,6 @@ pub struct ComputePassEndPipelineStatisticsQueryArgs { pub fn op_webgpu_compute_pass_end_pipeline_statistics_query( state: &mut OpState, args: ComputePassEndPipelineStatisticsQueryArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let compute_pass_resource = state .resource_table @@ -173,7 +168,6 @@ pub struct ComputePassWriteTimestampArgs { pub fn op_webgpu_compute_pass_write_timestamp( state: &mut OpState, args: ComputePassWriteTimestampArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let compute_pass_resource = state .resource_table @@ -202,7 +196,6 @@ pub struct ComputePassEndPassArgs { pub fn op_webgpu_compute_pass_end_pass( state: &mut OpState, args: ComputePassEndPassArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let command_encoder_resource = state .resource_table @@ -237,7 +230,6 @@ pub struct ComputePassSetBindGroupArgs { pub fn op_webgpu_compute_pass_set_bind_group( state: &mut OpState, args: ComputePassSetBindGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let bind_group_resource = state @@ -291,7 +283,6 @@ pub struct ComputePassPushDebugGroupArgs { pub fn op_webgpu_compute_pass_push_debug_group( state: &mut OpState, args: ComputePassPushDebugGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let compute_pass_resource = state .resource_table @@ -321,7 +312,6 @@ pub struct ComputePassPopDebugGroupArgs { pub fn op_webgpu_compute_pass_pop_debug_group( state: &mut OpState, args: ComputePassPopDebugGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let compute_pass_resource = state .resource_table @@ -345,7 +335,6 @@ pub struct ComputePassInsertDebugMarkerArgs { pub fn op_webgpu_compute_pass_insert_debug_marker( state: &mut OpState, args: ComputePassInsertDebugMarkerArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let compute_pass_resource = state .resource_table diff --git a/ext/webgpu/src/lib.rs b/ext/webgpu/src/lib.rs index d1eba20ba..329bec755 100644 --- a/ext/webgpu/src/lib.rs +++ b/ext/webgpu/src/lib.rs @@ -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)?; diff --git a/ext/webgpu/src/pipeline.rs b/ext/webgpu/src/pipeline.rs index 6ea2a5677..8dd0e7e0f 100644 --- a/ext/webgpu/src/pipeline.rs +++ b/ext/webgpu/src/pipeline.rs @@ -62,7 +62,6 @@ pub struct CreateComputePipelineArgs { pub fn op_webgpu_create_compute_pipeline( state: &mut OpState, args: CreateComputePipelineArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let device_resource = state @@ -132,7 +131,6 @@ pub struct PipelineLayout { pub fn op_webgpu_compute_pipeline_get_bind_group_layout( state: &mut OpState, args: ComputePipelineGetBindGroupLayoutArgs, - _: (), ) -> Result<PipelineLayout, AnyError> { let instance = state.borrow::<super::Instance>(); let compute_pipeline_resource = state @@ -310,7 +308,6 @@ pub struct CreateRenderPipelineArgs { pub fn op_webgpu_create_render_pipeline( state: &mut OpState, args: CreateRenderPipelineArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let device_resource = state @@ -412,7 +409,6 @@ pub struct RenderPipelineGetBindGroupLayoutArgs { pub fn op_webgpu_render_pipeline_get_bind_group_layout( state: &mut OpState, args: RenderPipelineGetBindGroupLayoutArgs, - _: (), ) -> Result<PipelineLayout, AnyError> { let instance = state.borrow::<super::Instance>(); let render_pipeline_resource = state diff --git a/ext/webgpu/src/queue.rs b/ext/webgpu/src/queue.rs index 3853f0025..b4532cf0c 100644 --- a/ext/webgpu/src/queue.rs +++ b/ext/webgpu/src/queue.rs @@ -24,7 +24,6 @@ pub struct QueueSubmitArgs { pub fn op_webgpu_queue_submit( state: &mut OpState, args: QueueSubmitArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let queue_resource = diff --git a/ext/webgpu/src/render_pass.rs b/ext/webgpu/src/render_pass.rs index 822b4c8c9..16398359f 100644 --- a/ext/webgpu/src/render_pass.rs +++ b/ext/webgpu/src/render_pass.rs @@ -37,7 +37,6 @@ pub struct RenderPassSetViewportArgs { pub fn op_webgpu_render_pass_set_viewport( state: &mut OpState, args: RenderPassSetViewportArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -70,7 +69,6 @@ pub struct RenderPassSetScissorRectArgs { pub fn op_webgpu_render_pass_set_scissor_rect( state: &mut OpState, args: RenderPassSetScissorRectArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -98,7 +96,6 @@ pub struct RenderPassSetBlendConstantArgs { pub fn op_webgpu_render_pass_set_blend_constant( state: &mut OpState, args: RenderPassSetBlendConstantArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -123,7 +120,6 @@ pub struct RenderPassSetStencilReferenceArgs { pub fn op_webgpu_render_pass_set_stencil_reference( state: &mut OpState, args: RenderPassSetStencilReferenceArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -149,7 +145,6 @@ pub struct RenderPassBeginPipelineStatisticsQueryArgs { pub fn op_webgpu_render_pass_begin_pipeline_statistics_query( state: &mut OpState, args: RenderPassBeginPipelineStatisticsQueryArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -177,7 +172,6 @@ pub struct RenderPassEndPipelineStatisticsQueryArgs { pub fn op_webgpu_render_pass_end_pipeline_statistics_query( state: &mut OpState, args: RenderPassEndPipelineStatisticsQueryArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -202,7 +196,6 @@ pub struct RenderPassWriteTimestampArgs { pub fn op_webgpu_render_pass_write_timestamp( state: &mut OpState, args: RenderPassWriteTimestampArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -231,7 +224,6 @@ pub struct RenderPassExecuteBundlesArgs { pub fn op_webgpu_render_pass_execute_bundles( state: &mut OpState, args: RenderPassExecuteBundlesArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let mut render_bundle_ids = vec![]; @@ -271,7 +263,6 @@ pub struct RenderPassEndPassArgs { pub fn op_webgpu_render_pass_end_pass( state: &mut OpState, args: RenderPassEndPassArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let command_encoder_resource = state .resource_table @@ -303,7 +294,6 @@ pub struct RenderPassSetBindGroupArgs { pub fn op_webgpu_render_pass_set_bind_group( state: &mut OpState, args: RenderPassSetBindGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let bind_group_resource = state @@ -357,7 +347,6 @@ pub struct RenderPassPushDebugGroupArgs { pub fn op_webgpu_render_pass_push_debug_group( state: &mut OpState, args: RenderPassPushDebugGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -387,7 +376,6 @@ pub struct RenderPassPopDebugGroupArgs { pub fn op_webgpu_render_pass_pop_debug_group( state: &mut OpState, args: RenderPassPopDebugGroupArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -411,7 +399,6 @@ pub struct RenderPassInsertDebugMarkerArgs { pub fn op_webgpu_render_pass_insert_debug_marker( state: &mut OpState, args: RenderPassInsertDebugMarkerArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -442,7 +429,6 @@ pub struct RenderPassSetPipelineArgs { pub fn op_webgpu_render_pass_set_pipeline( state: &mut OpState, args: RenderPassSetPipelineArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pipeline_resource = state @@ -474,7 +460,6 @@ pub struct RenderPassSetIndexBufferArgs { pub fn op_webgpu_render_pass_set_index_buffer( state: &mut OpState, args: RenderPassSetIndexBufferArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let buffer_resource = state .resource_table @@ -516,7 +501,6 @@ pub struct RenderPassSetVertexBufferArgs { pub fn op_webgpu_render_pass_set_vertex_buffer( state: &mut OpState, args: RenderPassSetVertexBufferArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let buffer_resource = state .resource_table @@ -559,7 +543,6 @@ pub struct RenderPassDrawArgs { pub fn op_webgpu_render_pass_draw( state: &mut OpState, args: RenderPassDrawArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -591,7 +574,6 @@ pub struct RenderPassDrawIndexedArgs { pub fn op_webgpu_render_pass_draw_indexed( state: &mut OpState, args: RenderPassDrawIndexedArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let render_pass_resource = state .resource_table @@ -621,7 +603,6 @@ pub struct RenderPassDrawIndirectArgs { pub fn op_webgpu_render_pass_draw_indirect( state: &mut OpState, args: RenderPassDrawIndirectArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let buffer_resource = state .resource_table @@ -651,7 +632,6 @@ pub struct RenderPassDrawIndexedIndirectArgs { pub fn op_webgpu_render_pass_draw_indexed_indirect( state: &mut OpState, args: RenderPassDrawIndexedIndirectArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let buffer_resource = state .resource_table diff --git a/ext/webgpu/src/sampler.rs b/ext/webgpu/src/sampler.rs index 3c0c43f53..c6827f4cb 100644 --- a/ext/webgpu/src/sampler.rs +++ b/ext/webgpu/src/sampler.rs @@ -37,7 +37,6 @@ pub struct CreateSamplerArgs { pub fn op_webgpu_create_sampler( state: &mut OpState, args: CreateSamplerArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let device_resource = state diff --git a/ext/webgpu/src/shader.rs b/ext/webgpu/src/shader.rs index 0173fffa2..a5e4e5d43 100644 --- a/ext/webgpu/src/shader.rs +++ b/ext/webgpu/src/shader.rs @@ -29,7 +29,6 @@ pub struct CreateShaderModuleArgs { pub fn op_webgpu_create_shader_module( state: &mut OpState, args: CreateShaderModuleArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let device_resource = state diff --git a/ext/webgpu/src/texture.rs b/ext/webgpu/src/texture.rs index 482437478..0d1154409 100644 --- a/ext/webgpu/src/texture.rs +++ b/ext/webgpu/src/texture.rs @@ -39,7 +39,6 @@ pub struct CreateTextureArgs { pub fn op_webgpu_create_texture( state: &mut OpState, args: CreateTextureArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let device_resource = state @@ -82,7 +81,6 @@ pub struct CreateTextureViewArgs { pub fn op_webgpu_create_texture_view( state: &mut OpState, args: CreateTextureViewArgs, - _: (), ) -> Result<WebGpuResult, AnyError> { let instance = state.borrow::<super::Instance>(); let texture_resource = state |