textureCap関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The cap for this device: low-memory phones stop at 2048, and the GPU's own limit and the option are never passed.
インポート
import { textureCap } from "@johnmorrisdotca/chikyu-earth/realistic";
定義
function textureCap(options?: { max?: number; gpuMax?: number; deviceMemory?: number; }): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
options (省略可) | { max?: number; gpuMax?: number; deviceMemory?: number; } |
|
戻り値
number
The most pixels across any picture may have on this device.
例
import { textureCap } from "@johnmorrisdotca/chikyu-earth/realistic";
console.log(textureCap(), textureCap({ deviceMemory: 2 }), textureCap({ gpuMax: 1024 }));4096 2048 1024出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。