Skip to content

Documentation / device / ShaderCaps

Interface: ShaderCaps

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

Shader related capabilities of the device

Properties

supportFragmentDepth

supportFragmentDepth: boolean

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

True if the device supports writing depth value in a fragment shader


supportStandardDerivatives

supportStandardDerivatives: boolean

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

True if the device supports derivative functions in a fragment shader


supportShaderTextureLod

supportShaderTextureLod: boolean

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

True if the device supports explicit control of texture LOD in a fragment shader


supportHighPrecisionFloat

supportHighPrecisionFloat: boolean

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

True if the device supports high precison float number for shader programs


maxUniformBufferSize

maxUniformBufferSize: number

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

The maximum number of bytes of uniform buffer


uniformBufferOffsetAlignment

uniformBufferOffsetAlignment: number

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

The uniform buffer offset alignment


maxStorageBufferSize

maxStorageBufferSize: number

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

The maximum number of bytes of storage buffer


storageBufferOffsetAlignment

storageBufferOffsetAlignment: number

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

The storage buffer offset alignment

Released under the MIT License.