diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-03-19 22:55:37 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 13:25:37 -0400 |
commit | 91ca58fb2639a791237570e4f1fadda9eeb8c0bc (patch) | |
tree | aa6faa41b9486a828952070f4ee337ad699e57ac /op_crates/webgpu/shader.rs | |
parent | 197305908b721340041be03e5a11fe60a1711fb2 (diff) |
chores: enforce type ResourceId across codebase (#9837)
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 |