Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions deno_webgpu/01_webgpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,13 +625,6 @@ ObjectDefineProperty(GPUCompilationMessage, privateCustomInspect, {
},
});
const GPUCompilationMessagePrototype = GPUCompilationMessage.prototype;
// Naming it `type` or `r#type` in Rust does not work.
// https://github.com/gfx-rs/wgpu/issues/7778
ObjectDefineProperty(GPUCompilationMessage.prototype, "type", {
get() {
return this.ty;
}
});

class GPUShaderStage {
constructor() {
Expand Down Expand Up @@ -845,13 +838,6 @@ ObjectDefineProperty(GPUQuerySetPrototype, privateCustomInspect, {
);
},
});
// Naming it `type` or `r#type` in Rust does not work.
// https://github.com/gfx-rs/wgpu/issues/7778
ObjectDefineProperty(GPUQuerySet.prototype, "type", {
get() {
return this.ty;
}
});

// Converters

Expand Down
5 changes: 2 additions & 3 deletions deno_webgpu/query_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@ impl GPUQuerySet {
Ok(())
}

// Naming this `type` or `r#type` does not work.
// https://github.com/gfx-rs/wgpu/issues/7778
#[getter]
#[string]
fn ty(&self) -> &'static str {
#[rename("type")]
fn r#type(&self) -> &'static str {
self.r#type.as_str()
}

Expand Down
5 changes: 2 additions & 3 deletions deno_webgpu/shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ impl GPUCompilationMessage {
self.message.clone()
}

// Naming this `type` or `r#type` does not work.
// https://github.com/gfx-rs/wgpu/issues/7778
#[getter]
#[string]
fn ty(&self) -> &'static str {
#[rename("type")]
fn r#type(&self) -> &'static str {
self.r#type.as_str()
}

Expand Down
Loading