Skip to content

Documentation / device / TextureCaps

Interface: TextureCaps

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

Texture related capabilities of the device'

Properties

maxTextureSize

maxTextureSize: number

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

The maximum size for 2d texture


maxCubeTextureSize

maxCubeTextureSize: number

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

The maximum size for cube texture


npo2Mipmapping

npo2Mipmapping: boolean

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

True if mipmapping is supported for non power of 2 textures


npo2Repeating

npo2Repeating: boolean

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

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


supportS3TC

supportS3TC: boolean

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

True if device supports dxt1, dxt3, dxt5 texture format


supportBPTC

supportBPTC: boolean

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

True if device supports bptc texture format


supportRGTC

supportRGTC: boolean

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

True if device supports rgtc texture format


supportASTC

supportASTC: boolean

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

True if device supports astc texture format


supportS3TCSRGB

supportS3TCSRGB: boolean

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

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


supportDepthTexture

supportDepthTexture: boolean

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

True if device supports depth texture


support3DTexture

support3DTexture: boolean

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

True if device supports 3d texture


supportSRGBTexture

supportSRGBTexture: boolean

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

True if device supports sRGB texture


supportFloatTexture

supportFloatTexture: boolean

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

True if device supports 32bit floating-point texture


supportLinearFloatTexture

supportLinearFloatTexture: boolean

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

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


supportHalfFloatTexture

supportHalfFloatTexture: boolean

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

True if device supports 16bit floating-point texture


supportLinearHalfFloatTexture

supportLinearHalfFloatTexture: boolean

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

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


supportAnisotropicFiltering

supportAnisotropicFiltering: boolean

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

True if device supports anisotropic filtering


supportFloatColorBuffer

supportFloatColorBuffer: boolean

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

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


supportHalfFloatColorBuffer

supportHalfFloatColorBuffer: boolean

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

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


supportFloatBlending

supportFloatBlending: boolean

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

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:2375

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.