Skip to content

Commit f11716f

Browse files
committed
fix: Don't reference WebGPU enums on global level (#2357)
1 parent a0c83f5 commit f11716f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/webgpu/src/adapter/resources/webgpu-pipeline-layout.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import {
66
} from '@luma.gl/core';
77
import {WebGPUDevice} from '../webgpu-device';
88

9-
const VISIBILITY_ALL = GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT | GPUShaderStage.COMPUTE;
10-
119
export class WebGPUPipelineLayout extends PipelineLayout {
1210
device: WebGPUDevice;
1311
handle: GPUPipelineLayout;
@@ -107,6 +105,9 @@ export class WebGPUPipelineLayout extends PipelineLayout {
107105
}
108106
}
109107

108+
const VISIBILITY_ALL =
109+
GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT | GPUShaderStage.COMPUTE;
110+
110111
bindGroupEntries.push({
111112
binding: binding.location,
112113
visibility: binding.visibility || VISIBILITY_ALL,

0 commit comments

Comments
 (0)