Skip to content

Commit

Permalink
Fix incorrect variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-xyzw committed Dec 4, 2023
1 parent 70c5477 commit 69ea2e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const myUniformValues = makeStructuredView(defs.uniforms.myUniforms);

// create the correct sized buffer
const uniformBuffer = device.createBuffer({
size: myUniformBuffer.arrayBuffer.byteLength,
size: myUniformValues.arrayBuffer.byteLength,
usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST,
});

Expand Down Expand Up @@ -246,7 +246,7 @@ The reason it's this way is it's common to make large arrays of `f32`, `u32`,
`vec2f`, `vec3f`, `vec4f` etc. We wouldn't want every element of an array to
have its own typedarray view.

You can configure this per type by calling `setIntrinsicsToView`.
You can configure this per type by calling `setIntrinsicsToView`.
The configuration is global. Given th example above

```js
Expand Down Expand Up @@ -355,4 +355,3 @@ Super thanks to Brendan Duncan for [wgsl-reflect](https://github.com/brendan-dun
## License

[MIT](LICENSE.md)

0 comments on commit 69ea2e1

Please sign in to comment.