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.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/webgpu/gpupipelinelayout.rs b/components/script/dom/webgpu/gpupipelinelayout.rs
index 33c5b1f72bb..87a593410c4 100644
--- a/components/script/dom/webgpu/gpupipelinelayout.rs
+++ b/components/script/dom/webgpu/gpupipelinelayout.rs
@@ -21,7 +21,7 @@ use crate::dom::webgpu::gpudevice::GPUDevice;
use crate::script_runtime::CanGc;
#[dom_struct]
-pub struct GPUPipelineLayout {
+pub(crate) struct GPUPipelineLayout {
reflector_: Reflector,
#[ignore_malloc_size_of = "defined in webgpu"]
#[no_trace]
@@ -49,7 +49,7 @@ impl GPUPipelineLayout {
}
}
- pub fn new(
+ pub(crate) fn new(
global: &GlobalScope,
channel: WebGPU,
pipeline_layout: WebGPUPipelineLayout,
@@ -70,16 +70,16 @@ impl GPUPipelineLayout {
}
impl GPUPipelineLayout {
- pub fn id(&self) -> WebGPUPipelineLayout {
+ pub(crate) fn id(&self) -> WebGPUPipelineLayout {
self.pipeline_layout
}
- pub fn bind_group_layouts(&self) -> Vec<WebGPUBindGroupLayout> {
+ pub(crate) fn bind_group_layouts(&self) -> Vec<WebGPUBindGroupLayout> {
self.bind_group_layouts.clone()
}
/// <https://gpuweb.github.io/gpuweb/#dom-gpudevice-createpipelinelayout>
- pub fn create(
+ pub(crate) fn create(
device: &GPUDevice,
descriptor: &GPUPipelineLayoutDescriptor,
) -> DomRoot<GPUPipelineLayout> {