From 9d53bc1e0305ab34e2649bd8b66ef1c51bd02fbb Mon Sep 17 00:00:00 2001 From: Holger Dal Mogensen <61235930+sockmaster27@users.noreply.github.com> Date: Fri, 13 Sep 2024 19:24:10 +0200 Subject: [PATCH] Add info about WebGPU parameter types to readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ad9cabb..096c898 100644 --- a/README.md +++ b/README.md @@ -252,6 +252,8 @@ The `parameters` property is an array of objects with the following properties: Note that Svader currently only supports `var` and not `var`. - **`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