diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-03-14 23:14:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 18:44:15 +0100 |
commit | b4e42953e1d243f2eda20e5be6b845d60b7bf688 (patch) | |
tree | 10b3bfff165f9c04f9174c7c399d44b9b724c3b3 /ext/webgpu/src/compute_pass.rs | |
parent | 4e3ed37037a2aa1edeac260dc3463a81d9cf9b88 (diff) |
feat(core): codegen ops (#13861)
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
Diffstat (limited to 'ext/webgpu/src/compute_pass.rs')
-rw-r--r-- | ext/webgpu/src/compute_pass.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/webgpu/src/compute_pass.rs b/ext/webgpu/src/compute_pass.rs index 03d9163cb..e6ebdc098 100644 --- a/ext/webgpu/src/compute_pass.rs +++ b/ext/webgpu/src/compute_pass.rs @@ -1,6 +1,7 @@ // Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. use deno_core::error::AnyError; +use deno_core::op; use deno_core::ResourceId; use deno_core::ZeroCopyBuf; use deno_core::{OpState, Resource}; @@ -26,6 +27,7 @@ pub struct ComputePassSetPipelineArgs { pipeline: ResourceId, } +#[op] pub fn op_webgpu_compute_pass_set_pipeline( state: &mut OpState, args: ComputePassSetPipelineArgs, @@ -56,6 +58,7 @@ pub struct ComputePassDispatchArgs { z: u32, } +#[op] pub fn op_webgpu_compute_pass_dispatch( state: &mut OpState, args: ComputePassDispatchArgs, @@ -83,6 +86,7 @@ pub struct ComputePassDispatchIndirectArgs { indirect_offset: u64, } +#[op] pub fn op_webgpu_compute_pass_dispatch_indirect( state: &mut OpState, args: ComputePassDispatchIndirectArgs, @@ -112,6 +116,7 @@ pub struct ComputePassBeginPipelineStatisticsQueryArgs { query_index: u32, } +#[op] pub fn op_webgpu_compute_pass_begin_pipeline_statistics_query( state: &mut OpState, args: ComputePassBeginPipelineStatisticsQueryArgs, @@ -139,6 +144,7 @@ pub struct ComputePassEndPipelineStatisticsQueryArgs { compute_pass_rid: ResourceId, } +#[op] pub fn op_webgpu_compute_pass_end_pipeline_statistics_query( state: &mut OpState, args: ComputePassEndPipelineStatisticsQueryArgs, @@ -163,6 +169,7 @@ pub struct ComputePassWriteTimestampArgs { query_index: u32, } +#[op] pub fn op_webgpu_compute_pass_write_timestamp( state: &mut OpState, args: ComputePassWriteTimestampArgs, @@ -191,6 +198,7 @@ pub struct ComputePassEndPassArgs { compute_pass_rid: ResourceId, } +#[op] pub fn op_webgpu_compute_pass_end_pass( state: &mut OpState, args: ComputePassEndPassArgs, @@ -225,6 +233,7 @@ pub struct ComputePassSetBindGroupArgs { dynamic_offsets_data_length: usize, } +#[op] pub fn op_webgpu_compute_pass_set_bind_group( state: &mut OpState, args: ComputePassSetBindGroupArgs, @@ -278,6 +287,7 @@ pub struct ComputePassPushDebugGroupArgs { group_label: String, } +#[op] pub fn op_webgpu_compute_pass_push_debug_group( state: &mut OpState, args: ComputePassPushDebugGroupArgs, @@ -307,6 +317,7 @@ pub struct ComputePassPopDebugGroupArgs { compute_pass_rid: ResourceId, } +#[op] pub fn op_webgpu_compute_pass_pop_debug_group( state: &mut OpState, args: ComputePassPopDebugGroupArgs, @@ -330,6 +341,7 @@ pub struct ComputePassInsertDebugMarkerArgs { marker_label: String, } +#[op] pub fn op_webgpu_compute_pass_insert_debug_marker( state: &mut OpState, args: ComputePassInsertDebugMarkerArgs, |