aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgpu/gpupipelinelayout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgpu/gpupipelinelayout.rs')
-rw-r--r--components/script/dom/webgpu/gpupipelinelayout.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/webgpu/gpupipelinelayout.rs b/components/script/dom/webgpu/gpupipelinelayout.rs
index 5a5768388c4..10bbc53f690 100644
--- a/components/script/dom/webgpu/gpupipelinelayout.rs
+++ b/components/script/dom/webgpu/gpupipelinelayout.rs
@@ -8,6 +8,7 @@ use dom_struct::dom_struct;
use webgpu::wgc::binding_model::PipelineLayoutDescriptor;
use webgpu::{WebGPU, WebGPUBindGroupLayout, WebGPUPipelineLayout, WebGPURequest};
+use crate::conversions::Convert;
use crate::dom::bindings::cell::DomRefCell;
use crate::dom::bindings::codegen::Bindings::WebGPUBinding::{
GPUPipelineLayoutDescriptor, GPUPipelineLayoutMethods,
@@ -87,7 +88,7 @@ impl GPUPipelineLayout {
.collect::<Vec<_>>();
let desc = PipelineLayoutDescriptor {
- label: (&descriptor.parent).into(),
+ label: (&descriptor.parent).convert(),
bind_group_layouts: Cow::Owned(bgls.iter().map(|l| l.0).collect::<Vec<_>>()),
push_constant_ranges: Cow::Owned(vec![]),
};