Documentation / device / ShaderCaps
Interface: ShaderCaps
Defined in: libs/device/src/base_types.ts:2294
Shader related capabilities of the device
Properties
supportFragmentDepth
supportFragmentDepth:
boolean
Defined in: libs/device/src/base_types.ts:2296
True if the device supports writing depth value in a fragment shader
supportStandardDerivatives
supportStandardDerivatives:
boolean
Defined in: libs/device/src/base_types.ts:2298
True if the device supports derivative functions in a fragment shader
supportShaderTextureLod
supportShaderTextureLod:
boolean
Defined in: libs/device/src/base_types.ts:2300
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:2302
True if the device supports high precison float number for shader programs
supportShaderF16
supportShaderF16:
boolean
Defined in: libs/device/src/base_types.ts:2304
True if the device supports f16 type in shader programs (WebGPU shader-f16 feature)
maxUniformBufferSize
maxUniformBufferSize:
number
Defined in: libs/device/src/base_types.ts:2306
The maximum number of bytes of uniform buffer
uniformBufferOffsetAlignment
uniformBufferOffsetAlignment:
number
Defined in: libs/device/src/base_types.ts:2308
The uniform buffer offset alignment
maxStorageBufferSize
maxStorageBufferSize:
number
Defined in: libs/device/src/base_types.ts:2310
The maximum number of bytes of storage buffer
storageBufferOffsetAlignment
storageBufferOffsetAlignment:
number
Defined in: libs/device/src/base_types.ts:2312
The storage buffer offset alignment