diff options
Diffstat (limited to 'op_crates/webgpu/shader.rs')
-rw-r--r-- | op_crates/webgpu/shader.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/op_crates/webgpu/shader.rs b/op_crates/webgpu/shader.rs index 25adf9b95..28ad4ef62 100644 --- a/op_crates/webgpu/shader.rs +++ b/op_crates/webgpu/shader.rs @@ -4,6 +4,7 @@ use deno_core::error::bad_resource_id; use deno_core::error::AnyError; use deno_core::serde_json::json; use deno_core::serde_json::Value; +use deno_core::ResourceId; use deno_core::ZeroCopyBuf; use deno_core::{OpState, Resource}; use serde::Deserialize; @@ -21,7 +22,7 @@ impl Resource for WebGPUShaderModule { #[derive(Deserialize)] #[serde(rename_all = "camelCase")] pub struct CreateShaderModuleArgs { - device_rid: u32, + device_rid: ResourceId, label: Option<String>, code: Option<String>, _source_map: Option<()>, // not yet implemented |