Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
toji committed Jul 2, 2024
1 parent 90e3042 commit 49ebce9
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions sample/wireframe/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 49ebce9

Please sign in to comment.