UNPKG

@three3d/tools

Version:

@three3d/tools 提供了 ThreeJS 常用的工具库

26 lines (14 loc) 560 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [getTextureFormatSize](./tools.gettextureformatsize.md) ## getTextureFormatSize() function 获取 Texture 的 format 对应的 item 尺寸(长度) **Signature:** ```typescript export declare function getTextureFormatSize(format: AnyPixelFormat): number; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | format | AnyPixelFormat | | **Returns:** number