summaryrefslogtreecommitdiff
path: root/ext/webgpu/src/texture.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/webgpu/src/texture.rs')
-rw-r--r--ext/webgpu/src/texture.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/webgpu/src/texture.rs b/ext/webgpu/src/texture.rs
index 30d440e5c..482437478 100644
--- a/ext/webgpu/src/texture.rs
+++ b/ext/webgpu/src/texture.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;
@@ -34,6 +35,7 @@ pub struct CreateTextureArgs {
usage: u32,
}
+#[op]
pub fn op_webgpu_create_texture(
state: &mut OpState,
args: CreateTextureArgs,
@@ -76,6 +78,7 @@ pub struct CreateTextureViewArgs {
array_layer_count: Option<u32>,
}
+#[op]
pub fn op_webgpu_create_texture_view(
state: &mut OpState,
args: CreateTextureViewArgs,