Skip to content

Commit

Permalink
Add info about WebGPU parameter types to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sockmaster27 authored Sep 13, 2024
1 parent 3f07136 commit 9d53bc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ The `parameters` property is an array of objects with the following properties:
Note that Svader currently only supports `var<storage, read>` and not `var<storage, read_write>`.
- **`data`**: The value of the parameter, or a string specifying a piece of [builtin data](#webgpu-builtin-data).
If not builtin data, this parameter should be an `ArrayBuffer`/`ArrayBufferView`.
For example, to pass in a number to an `f32` parameter, it can be constructed like `new Float32Array([myNumberValue])`.
##### WebGPU builtin data
Expand Down

0 comments on commit 9d53bc1

Please sign in to comment.