Skip to content

Commit 8b4ab12

Browse files
committed
Add docs for backend attribute of pc-app
1 parent 8674b89 commit 8b4ab12

File tree

2 files changed

+2
-0
lines changed
  • docs/user-manual/web-components/tags
  • i18n/ja/docusaurus-plugin-content-docs/current/user-manual/web-components/tags

2 files changed

+2
-0
lines changed

docs/user-manual/web-components/tags/pc-app.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The `<pc-app>` tag is the root element for your PlayCanvas application. It is us
1717
| Attribute | Description |
1818
| --- | --- |
1919
| `alpha` | Boolean attribute. Determines whether the application allocates an alpha channel in the frame buffer. Defaults to `true`. |
20+
| `backend` | The graphics engine backend. Can be `webgpu`, `webgl2` or `null`. If `webgpu` is specified and WebGPU is not available, the engine will fall back to `webgl2`. If unspecified, `webgl2` is used. |
2021
| `antialias` | Boolean attribute. Determines whether the application uses anti-aliasing. Defaults to `true`. |
2122
| `depth` | Boolean attribute. Determines whether the application allocates a depth buffer. Defaults to `true`. |
2223
| `high-resolution` | Boolean attribute. Determines whether the application renders using physical resolution or CSS resolution. Defaults to `true`. |

i18n/ja/docusaurus-plugin-content-docs/current/user-manual/web-components/tags/pc-app.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ title: <pc-app>
1717
| 属性 | 説明 |
1818
| --- | --- |
1919
| `alpha` | 真偽値属性。アプリケーションがフレームバッファにアルファチャンネルを割り当てるかどうかを決定します。デフォルトは`true`です。 |
20+
| `backend` | グラフィックスエンジンのバックエンドです。`webgpu``webgl2`、または`null`が指定可能です。`webgpu`が指定され、WebGPUが利用できない場合、エンジンは`webgl2`にフォールバックします。指定されていない場合、`webgl2`が使用されます。 |
2021
| `antialias` | 真偽値属性。アプリケーションがアンチエイリアシングを使用するかどうかを決定します。デフォルトは`true`です。 |
2122
| `depth` | 真偽値属性。アプリケーションがデプスバッファを割り当てるかどうかを決定します。デフォルトは`true`です。 |
2223
| `high-resolution` | 真偽値属性。アプリケーションが物理解像度またはCSS解像度を使用してレンダリングするかどうかを決定します。デフォルトは`true`です。 |

0 commit comments

Comments
 (0)