Skip to content

Commit dbcfbd8

Browse files
committed
[WebGPU] Update demos to work on STP 92
https://bugs.webkit.org/show_bug.cgi?id=201872 Reviewed by Dean Jackson. Websites/browserbench.org: GPUShaderStageBit => GPUShaderStage * MotionMark1.1/tests/3d/resources/webgpu.js: (Stage.call.initialize): Websites/webkit.org: Updating for new WSL buffer layouts. Updating for new WSL compiler struct validation rules. GPUShaderStageBit => GPUShaderStage GPUColorWriteBits => GPUColorWrite GPUBufferUsage.TRANSFER_DST => GPUBufferUsage.COPY_DST GPUBufferUsage.TRANSFER_SRC => GPUBufferUsage.COPY_SRC * demos/webgpu/babylon/babylonWebGpu.max.js: * demos/webgpu/babylon/oneHelmetWebGPUWSLShaders.js: (sampler.bumpSamplerSampler.register): (sampler.reflectionSamplerSampler.register): (float2.uv.attribute): Deleted. (float3.normal.attribute): Deleted. * demos/webgpu/compute-boids.html: * demos/webgpu/hello-cube.html: * demos/webgpu/scripts/compute-blur.js: (setUpCompute): (createShaderCode): * demos/webgpu/scripts/compute-boids-compile.js: * demos/webgpu/scripts/hello-triangle.js: (async.helloTriangle): * demos/webgpu/textured-cube.html: Canonical link: https://commits.webkit.org/215557@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 23f932e commit dbcfbd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MotionMark1.1/tests/3d/resources/webgpu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ WebGLStage = Utilities.createSubclass(Stage,
9494

9595
this._timeBindGroupLayout = device.createBindGroupLayout({
9696
bindings: [
97-
{ binding: 0, visibility: GPUShaderStageBit.VERTEX, type: "uniform-buffer" },
97+
{ binding: 0, visibility: GPUShaderStage.VERTEX, type: "uniform-buffer" },
9898
],
9999
});
100100

101101
this._bindGroupLayout = device.createBindGroupLayout({
102102
bindings: [
103-
{ binding: 0, visibility: GPUShaderStageBit.VERTEX, type: "uniform-buffer" },
103+
{ binding: 0, visibility: GPUShaderStage.VERTEX, type: "uniform-buffer" },
104104
],
105105
});
106106

0 commit comments

Comments
 (0)