From 49ebce99727d8a2625f577453f54604a73c25fe6 Mon Sep 17 00:00:00 2001 From: Brandon Jones Date: Tue, 2 Jul 2024 11:11:58 -0700 Subject: [PATCH] Fix lint issues --- sample/wireframe/main.ts | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/sample/wireframe/main.ts b/sample/wireframe/main.ts index b93e9f61..2255b61f 100644 --- a/sample/wireframe/main.ts +++ b/sample/wireframe/main.ts @@ -89,18 +89,22 @@ const wireframeModule = device.createShaderModule({ const litBindGroupLayout = device.createBindGroupLayout({ label: 'lit bind group layout', - entries: [{ - binding: 0, - visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT, - buffer: {}, - }] + entries: [ + { + binding: 0, + visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT, + buffer: {}, + }, + ], }); let litPipeline; function rebuildLitPipeline() { litPipeline = device.createRenderPipeline({ label: 'lit pipeline', - layout: device.createPipelineLayout({ bindGroupLayouts: [litBindGroupLayout] }), + layout: device.createPipelineLayout({ + bindGroupLayouts: [litBindGroupLayout], + }), vertex: { module: litModule, buffers: [ @@ -321,11 +325,13 @@ const renderPassDescriptor: GPURenderPassDescriptor = { const gui = new GUI(); gui.add(settings, 'barycentricCoordinatesBased').onChange(addRemoveGUI); -gui.add(settings, 'lines') +gui.add(settings, 'lines'); gui.add(settings, 'models'); -gui.add(settings, 'animate') +gui.add(settings, 'animate'); gui.add(settings, 'depthBias', -1, 1, 0.05).onChange(rebuildLitPipeline); -gui.add(settings, 'depthBiasSlopeScale', -1, 1, 0.05).onChange(rebuildLitPipeline); +gui + .add(settings, 'depthBiasSlopeScale', -1, 1, 0.05) + .onChange(rebuildLitPipeline); const guis = []; function addRemoveGUI() {