Optional GPU capabilities. Returned by context:features().
Fields
bc
BC (S3TC/DXT) compressed texture formats supported.
etc2
ETC2 compressed texture formats supported (common on mobile).
astc
ASTC compressed texture formats supported.
maxTextureSize2D
Maximum 2-D texture width or height in texels.
maxTextureSizeCube
Maximum cube-map face size in texels.
maxTextureSize3D
Maximum 3-D texture depth / layer count.
anisotropicFiltering
Anisotropic texture filtering supported.
texture3D
3-D textures supported.
textureArrays
Texture arrays supported.
colorBufferFloat
32-bit float color render targets supported (rgba32float etc).
colorBufferHalfFloat
16-bit float color render targets supported (rgba16float etc). Implied
by colorBufferFloat, but can be present without it on WebGL.
perTargetBlend
Independent blend state per color attachment supported.
perTargetWriteMask
Independent write mask per color attachment supported.
drawBaseInstance
Non-zero firstInstance in draw calls supported.
depthBiasClamp
Depth bias clamping (depthBiasClamp) supported in pipeline state.
maxColorAttachments
Maximum number of simultaneous color attachments.
maxUniformBufferSize
Maximum uniform buffer binding size in bytes.
maxSamplers
Maximum number of samplers per shader stage.
maxSamples
Maximum MSAA sample count for color render targets (always a power-of-two: 1, 2, 4, or 8).
minUniformBufferOffsetAlignment
What setBindGroup’s dynamic offsets must be a multiple of.
multisampledTextureRead
A shader reading texture_multisampled_2d or texture_depth_multisampled_2d
sees each sample. False on GL and WebGL2, where a read returns the
resolved texture: every sample index reads the same value and
textureNumSamples is 1.