File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -185,6 +185,19 @@ device.queue.submit([commandEncoder.finish()]);
185185context .present ();
186186```
187187
188+ ### Canvas Transparency
189+
190+ On Android, the ` alphaMode ` property is ignored when configuring the canvas.
191+ To have a transparent canvas by default, use the ` transparent ` property.
192+
193+ ``` tsx
194+ return (
195+ <View style = { style .container } >
196+ <Canvas ref = { ref } style = { style .webgpu } transparent />
197+ </View >
198+ );
199+ ```
200+
188201### External Textures
189202
190203This module provides a ` createImageBitmap ` function that you can use in ` copyExternalImageToTexture ` .
Original file line number Diff line number Diff line change @@ -185,6 +185,19 @@ device.queue.submit([commandEncoder.finish()]);
185185context .present ();
186186```
187187
188+ ### Canvas Transparency
189+
190+ On Android, the ` alphaMode ` property is ignored when configuring the canvas.
191+ To have a transparent canvas by default, use the ` transparent ` property.
192+
193+ ``` tsx
194+ return (
195+ <View style = { style .container } >
196+ <Canvas ref = { ref } style = { style .webgpu } transparent />
197+ </View >
198+ );
199+ ```
200+
188201### External Textures
189202
190203This module provides a ` createImageBitmap ` function that you can use in ` copyExternalImageToTexture ` .
You can’t perform that action at this time.
0 commit comments