Skip to content

Documentation / device / TextureCaps

Interface: TextureCaps ​

Defined in: libs/device/src/base_types.ts:2338

Texture related capabilities of the device'

Properties ​

maxTextureSize ​

maxTextureSize: number

Defined in: libs/device/src/base_types.ts:2340

The maximum size for 2d texture


maxCubeTextureSize ​

maxCubeTextureSize: number

Defined in: libs/device/src/base_types.ts:2342

The maximum size for cube texture


npo2Mipmapping ​

npo2Mipmapping: boolean

Defined in: libs/device/src/base_types.ts:2344

True if mipmapping is supported for non power of 2 textures


npo2Repeating ​

npo2Repeating: boolean

Defined in: libs/device/src/base_types.ts:2346

True if repeat address mode is supported for non power of 2 textures


supportS3TC ​

supportS3TC: boolean

Defined in: libs/device/src/base_types.ts:2348

True if device supports dxt1, dxt3, dxt5 texture format


supportBPTC ​

supportBPTC: boolean

Defined in: libs/device/src/base_types.ts:2350

True if device supports bptc texture format


supportRGTC ​

supportRGTC: boolean

Defined in: libs/device/src/base_types.ts:2352

True if device supports rgtc texture format


supportASTC ​

supportASTC: boolean

Defined in: libs/device/src/base_types.ts:2354

True if device supports astc texture format


supportS3TCSRGB ​

supportS3TCSRGB: boolean

Defined in: libs/device/src/base_types.ts:2356

True if device supports dxt1_srgb, dxt3-srgb, dxt5-srgb texture format


supportDepthTexture ​

supportDepthTexture: boolean

Defined in: libs/device/src/base_types.ts:2358

True if device supports depth texture


support3DTexture ​

support3DTexture: boolean

Defined in: libs/device/src/base_types.ts:2360

True if device supports 3d texture


supportSRGBTexture ​

supportSRGBTexture: boolean

Defined in: libs/device/src/base_types.ts:2362

True if device supports sRGB texture


supportFloatTexture ​

supportFloatTexture: boolean

Defined in: libs/device/src/base_types.ts:2364

True if device supports 32bit floating-point texture


supportLinearFloatTexture ​

supportLinearFloatTexture: boolean

Defined in: libs/device/src/base_types.ts:2366

True if device supports linear filtering on 32bit floating-point textures


supportHalfFloatTexture ​

supportHalfFloatTexture: boolean

Defined in: libs/device/src/base_types.ts:2368

True if device supports 16bit floating-point texture


supportLinearHalfFloatTexture ​

supportLinearHalfFloatTexture: boolean

Defined in: libs/device/src/base_types.ts:2370

True if device supports linear filtering on 16bit floating-point textures


supportAnisotropicFiltering ​

supportAnisotropicFiltering: boolean

Defined in: libs/device/src/base_types.ts:2372

True if device supports anisotropic filtering


supportFloatColorBuffer ​

supportFloatColorBuffer: boolean

Defined in: libs/device/src/base_types.ts:2374

True if device supports rendering into a 32bit floating-point frame buffer


supportHalfFloatColorBuffer ​

supportHalfFloatColorBuffer: boolean

Defined in: libs/device/src/base_types.ts:2376

True if device supports rendering into a 16bit floating-point frame buffer


supportFloatBlending ​

supportFloatBlending: boolean

Defined in: libs/device/src/base_types.ts:2378

True if device supports alpha blending with floating-point frame buffer

Methods ​

getTextureFormatInfo() ​

getTextureFormatInfo(format): Immutable<TextureFormatInfo>

Defined in: libs/device/src/base_types.ts:2384

Get information of a given texture format

Parameters ​

format ​

TextureFormat

The texture format

Returns ​

Immutable<TextureFormatInfo>

the texture format infomation

Released under the MIT License.