Skip to content

Commit

Permalink
refactor(WebGPURenderer): harden attribute types
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Sep 10, 2023
1 parent 3c9ffd9 commit 115f36e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WebGPURenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ export class WebGPURenderer {
{
shaderLocation: shaderLocation++,
offset: 0,
format: `${formatName}x${Math.min(attribute.size, 4)}`,
format: `${formatName}x${Math.min(attribute.size, 4)}` as GPUVertexFormat,
},
] as Iterable<GPUVertexAttribute>,
] satisfies GPUVertexAttribute[] as Iterable<GPUVertexAttribute>,
})
}

Expand Down

0 comments on commit 115f36e

Please sign in to comment.