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>