Skip to content

v0.4.0

Compare
Choose a tag to compare
@sockmaster27 sockmaster27 released this 01 Oct 20:24
· 196 commits to master since this release

Changes

Rename all components from XFragmentShader to XShader

Example

- <WebGpuFragmentShader
+ <WebGpuShader
    code={shaderCode}
    parameters={[
        {
            label: "Resolution",
            binding: 0,
            value: "resolution",
        },
        {
            label: "Offset",
            binding: 1,
            value: "offset",
        },
    ]}
 >
</WebGpuShader>

Rename Parameter.data to Parameter.value

Example

<WebGpuShader
    code={shaderCode}
    parameters={[
        {
            label: "Resolution",
            binding: 0,
-           data: "resolution",
+           value: "resolution",
        },
        {
            label: "Offset",
            binding: 1,
-           data: "offset",
+           value: "offset",
        },
    ]}
 >
</WebGpuShader>