From b4e42953e1d243f2eda20e5be6b845d60b7bf688 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Mon, 14 Mar 2022 23:14:15 +0530 Subject: feat(core): codegen ops (#13861) Co-authored-by: Aaron O'Mullan --- ext/webgpu/src/binding.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/webgpu/src/binding.rs') diff --git a/ext/webgpu/src/binding.rs b/ext/webgpu/src/binding.rs index 9a8fa455f..7370f8034 100644 --- a/ext/webgpu/src/binding.rs +++ b/ext/webgpu/src/binding.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::{OpState, Resource}; use serde::Deserialize; @@ -177,6 +178,7 @@ pub struct CreateBindGroupLayoutArgs { entries: Vec, } +#[op] pub fn op_webgpu_create_bind_group_layout( state: &mut OpState, args: CreateBindGroupLayoutArgs, @@ -220,6 +222,7 @@ pub struct CreatePipelineLayoutArgs { bind_group_layouts: Vec, } +#[op] pub fn op_webgpu_create_pipeline_layout( state: &mut OpState, args: CreatePipelineLayoutArgs, @@ -271,6 +274,7 @@ pub struct CreateBindGroupArgs { entries: Vec, } +#[op] pub fn op_webgpu_create_bind_group( state: &mut OpState, args: CreateBindGroupArgs, -- cgit v1.2.3