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/queue.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/queue.rs')
-rw-r--r-- | ext/webgpu/src/queue.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/webgpu/src/queue.rs b/ext/webgpu/src/queue.rs index a662c4ead..3853f0025 100644 --- a/ext/webgpu/src/queue.rs +++ b/ext/webgpu/src/queue.rs @@ -3,6 +3,7 @@ use std::num::NonZeroU32; use deno_core::error::AnyError; +use deno_core::op; use deno_core::OpState; use deno_core::ResourceId; use deno_core::ZeroCopyBuf; @@ -19,6 +20,7 @@ pub struct QueueSubmitArgs { command_buffers: Vec<ResourceId>, } +#[op] pub fn op_webgpu_queue_submit( state: &mut OpState, args: QueueSubmitArgs, @@ -73,6 +75,7 @@ pub struct QueueWriteBufferArgs { size: Option<usize>, } +#[op] pub fn op_webgpu_write_buffer( state: &mut OpState, args: QueueWriteBufferArgs, @@ -111,6 +114,7 @@ pub struct QueueWriteTextureArgs { size: wgpu_types::Extent3d, } +#[op] pub fn op_webgpu_write_texture( state: &mut OpState, args: QueueWriteTextureArgs, |