Skip to content

Commit 27b1ceb

Browse files
authored
fix: Don't reference WebGPU enums on global level (#2357)
1 parent 4a83600 commit 27b1ceb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
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,

yarn.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -11501,11 +11501,11 @@ __metadata:
1150111501

1150211502
"typescript@patch:typescript@npm%3A^5.7.3#optional!builtin<compat/typescript>":
1150311503
version: 5.7.3
11504-
resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=5786d5"
11504+
resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=cef18b"
1150511505
bin:
1150611506
tsc: bin/tsc
1150711507
tsserver: bin/tsserver
11508-
checksum: 10c0/6fd7e0ed3bf23a81246878c613423730c40e8bdbfec4c6e4d7bf1b847cbb39076e56ad5f50aa9d7ebd89877999abaee216002d3f2818885e41c907caaa192cc4
11508+
checksum: 10c0/3b56d6afa03d9f6172d0b9cdb10e6b1efc9abc1608efd7a3d2f38773d5d8cfb9bbc68dfb72f0a7de5e8db04fc847f4e4baeddcd5ad9c9feda072234f0d788896
1150911509
languageName: node
1151011510
linkType: hard
1151111511

0 commit comments

Comments
 (0)