Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest WebGPU WebIDL #2267

Merged
merged 1 commit into from
Aug 4, 2020
Merged
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
5 changes: 5 additions & 0 deletions crates/web-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,9 @@ GpuCommandBufferDescriptor = []
GpuCommandEncoder = []
GpuCommandEncoderDescriptor = []
GpuCompareFunction = []
GpuCompilationInfo = []
GpuCompilationMessage = []
GpuCompilationMessageType = []
GpuComputePassDescriptor = []
GpuComputePassEncoder = []
GpuComputePipeline = []
Expand Down Expand Up @@ -436,6 +439,7 @@ GpuOutOfMemoryError = []
GpuPipelineDescriptorBase = []
GpuPipelineLayout = []
GpuPipelineLayoutDescriptor = []
GpuPipelineStatisticName = []
GpuPowerPreference = []
GpuPrimitiveTopology = []
GpuProgrammableStageDescriptor = []
Expand Down Expand Up @@ -469,6 +473,7 @@ GpuTexture = []
GpuTextureAspect = []
GpuTextureComponentType = []
GpuTextureCopyView = []
GpuTextureDataLayout = []
GpuTextureDescriptor = []
GpuTextureDimension = []
GpuTextureFormat = []
Expand Down
21 changes: 21 additions & 0 deletions crates/web-sys/src/features/gen_GpuBindGroupLayoutEntry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,27 @@ impl GpuBindGroupLayoutEntry {
self
}
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `minBufferBindingSize` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn min_buffer_binding_size(&mut self, val: f64) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
&JsValue::from("minBufferBindingSize"),
&JsValue::from(val),
);
debug_assert!(
r.is_ok(),
"setting properties should never fail on our dictionary objects"
);
let _ = r;
self
}
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `multisampled` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"]
Expand Down
42 changes: 21 additions & 21 deletions crates/web-sys/src/features/gen_GpuBufferCopyView.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,14 @@ impl GpuBufferCopyView {
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(buffer: &GpuBuffer, bytes_per_row: u32) -> Self {
pub fn new(bytes_per_row: u32, buffer: &GpuBuffer) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.buffer(buffer);
ret.bytes_per_row(bytes_per_row);
ret.buffer(buffer);
ret
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuBuffer")]
#[doc = "Change the `buffer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferCopyView`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn buffer(&mut self, val: &GpuBuffer) -> &mut Self {
use wasm_bindgen::JsValue;
let r =
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val));
debug_assert!(
r.is_ok(),
"setting properties should never fail on our dictionary objects"
);
let _ = r;
self
}
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `bytesPerRow` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuBufferCopyView`*"]
Expand Down Expand Up @@ -109,4 +90,23 @@ impl GpuBufferCopyView {
let _ = r;
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuBuffer")]
#[doc = "Change the `buffer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferCopyView`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn buffer(&mut self, val: &GpuBuffer) -> &mut Self {
use wasm_bindgen::JsValue;
let r =
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val));
debug_assert!(
r.is_ok(),
"setting properties should never fail on our dictionary objects"
);
let _ = r;
self
}
}
11 changes: 11 additions & 0 deletions crates/web-sys/src/features/gen_GpuCommandBuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type GpuCommandBuffer;
#[cfg(web_sys_unstable_apis)]
# [ wasm_bindgen ( structural , method , getter , js_class = "GPUCommandBuffer" , js_name = executionTime ) ]
#[doc = "Getter for the `executionTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer/executionTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn execution_time(this: &GpuCommandBuffer) -> ::js_sys::Promise;
#[cfg(web_sys_unstable_apis)]
# [ wasm_bindgen ( structural , method , getter , js_class = "GPUCommandBuffer" , js_name = label ) ]
#[doc = "Getter for the `label` field of this object."]
#[doc = ""]
Expand Down
12 changes: 12 additions & 0 deletions crates/web-sys/src/features/gen_GpuCommandEncoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,16 @@ extern "C" {
destination: &GpuBuffer,
destination_offset: f64,
);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuQuerySet")]
# [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = writeTimestamp ) ]
#[doc = "The `writeTimestamp()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/writeTimestamp)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuQuerySet`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn write_timestamp(this: &GpuCommandEncoder, query_set: &GpuQuerySet, query_index: u32);
}
21 changes: 21 additions & 0 deletions crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,25 @@ impl GpuCommandEncoderDescriptor {
let _ = r;
self
}
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `measureExecutionTime` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn measure_execution_time(&mut self, val: bool) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
&JsValue::from("measureExecutionTime"),
&JsValue::from(val),
);
debug_assert!(
r.is_ok(),
"setting properties should never fail on our dictionary objects"
);
let _ = r;
self
}
}
18 changes: 18 additions & 0 deletions crates/web-sys/src/features/gen_GpuCompilationInfo.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUCompilationInfo , typescript_type = "GPUCompilationInfo" ) ]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `GpuCompilationInfo` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationInfo)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationInfo`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type GpuCompilationInfo;
}
63 changes: 63 additions & 0 deletions crates/web-sys/src/features/gen_GpuCompilationMessage.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUCompilationMessage , typescript_type = "GPUCompilationMessage" ) ]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `GpuCompilationMessage` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type GpuCompilationMessage;
#[cfg(web_sys_unstable_apis)]
# [ wasm_bindgen ( structural , method , getter , js_class = "GPUCompilationMessage" , js_name = message ) ]
#[doc = "Getter for the `message` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/message)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn message(this: &GpuCompilationMessage) -> String;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuCompilationMessageType")]
# [ wasm_bindgen ( structural , method , getter , js_class = "GPUCompilationMessage" , js_name = type ) ]
#[doc = "Getter for the `type` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/type)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`, `GpuCompilationMessageType`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn type_(this: &GpuCompilationMessage) -> GpuCompilationMessageType;
#[cfg(web_sys_unstable_apis)]
# [ wasm_bindgen ( structural , method , getter , js_class = "GPUCompilationMessage" , js_name = lineNum ) ]
#[doc = "Getter for the `lineNum` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/lineNum)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn line_num(this: &GpuCompilationMessage) -> f64;
#[cfg(web_sys_unstable_apis)]
# [ wasm_bindgen ( structural , method , getter , js_class = "GPUCompilationMessage" , js_name = linePos ) ]
#[doc = "Getter for the `linePos` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/linePos)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn line_pos(this: &GpuCompilationMessage) -> f64;
}
16 changes: 16 additions & 0 deletions crates/web-sys/src/features/gen_GpuCompilationMessageType.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#![allow(unused_imports)]
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
#[doc = "The `GpuCompilationMessageType` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessageType`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum GpuCompilationMessageType {
Error = "error",
Warning = "warning",
Info = "info",
}
39 changes: 39 additions & 0 deletions crates/web-sys/src/features/gen_GpuComputePassEncoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_label(this: &GpuComputePassEncoder, value: Option<&str>);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuQuerySet")]
# [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = beginPipelineStatisticsQuery ) ]
#[doc = "The `beginPipelineStatisticsQuery()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/beginPipelineStatisticsQuery)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `GpuQuerySet`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn begin_pipeline_statistics_query(
this: &GpuComputePassEncoder,
query_set: &GpuQuerySet,
query_index: u32,
);
#[cfg(web_sys_unstable_apis)]
# [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch ) ]
#[doc = "The `dispatch()` method."]
#[doc = ""]
Expand Down Expand Up @@ -114,6 +130,17 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn end_pass(this: &GpuComputePassEncoder);
#[cfg(web_sys_unstable_apis)]
# [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = endPipelineStatisticsQuery ) ]
#[doc = "The `endPipelineStatisticsQuery()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/endPipelineStatisticsQuery)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn end_pipeline_statistics_query(this: &GpuComputePassEncoder);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuComputePipeline")]
# [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = setPipeline ) ]
#[doc = "The `setPipeline()` method."]
Expand All @@ -126,6 +153,18 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_pipeline(this: &GpuComputePassEncoder, pipeline: &GpuComputePipeline);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuQuerySet")]
# [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = writeTimestamp ) ]
#[doc = "The `writeTimestamp()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/writeTimestamp)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `GpuQuerySet`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn write_timestamp(this: &GpuComputePassEncoder, query_set: &GpuQuerySet, query_index: u32);
#[cfg(web_sys_unstable_apis)]
# [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = insertDebugMarker ) ]
#[doc = "The `insertDebugMarker()` method."]
#[doc = ""]
Expand Down
12 changes: 12 additions & 0 deletions crates/web-sys/src/features/gen_GpuComputePipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,16 @@ extern "C" {
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_label(this: &GpuComputePipeline, value: Option<&str>);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuBindGroupLayout")]
# [ wasm_bindgen ( method , structural , js_class = "GPUComputePipeline" , js_name = getBindGroupLayout ) ]
#[doc = "The `getBindGroupLayout()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/getBindGroupLayout)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`, `GpuComputePipeline`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn get_bind_group_layout(this: &GpuComputePipeline, index: u32) -> GpuBindGroupLayout;
}
10 changes: 3 additions & 7 deletions crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,16 @@ extern "C" {
}
#[cfg(web_sys_unstable_apis)]
impl GpuComputePipelineDescriptor {
#[cfg(all(
feature = "GpuPipelineLayout",
feature = "GpuProgrammableStageDescriptor",
))]
#[cfg(feature = "GpuProgrammableStageDescriptor")]
#[doc = "Construct a new `GpuComputePipelineDescriptor`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuPipelineLayout`, `GpuProgrammableStageDescriptor`*"]
#[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuProgrammableStageDescriptor`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(layout: &GpuPipelineLayout, compute_stage: &GpuProgrammableStageDescriptor) -> Self {
pub fn new(compute_stage: &GpuProgrammableStageDescriptor) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.layout(layout);
ret.compute_stage(compute_stage);
ret
}
Expand Down
Loading