textureBytes関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Bytes of GPU memory a texture of this width costs, with its mipmaps, at 4 bytes a pixel (the most it can be).
インポート
import { textureBytes } from "@johnmorrisdotca/chikyu-earth/realistic";
定義
function textureBytes(width: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
width | number | Pixels across; the picture is 2:1. |
戻り値
number
The bytes the GPU holds for it.
例
import { textureBytes } from "@johnmorrisdotca/chikyu-earth/realistic";
console.log(textureBytes(4096));44739243出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。