context:features().
GPU
GPUFeatures
Optional GPU capabilities. Returned by
BC (S3TC/DXT) compressed texture formats supported.
ETC2 compressed texture formats supported (common on mobile).
ASTC compressed texture formats supported.
Maximum 2-D texture width or height in texels.
Maximum cube-map face size in texels.
Maximum 3-D texture depth / layer count.
Anisotropic texture filtering supported.
3-D textures supported.
Texture arrays supported.
32-bit float color render targets supported (rgba32float etc).
16-bit float color render targets supported (rgba16float etc). Implied by colorBufferFloat, but can be present without it on WebGL.
Independent blend state per color attachment supported.
Independent write mask per color attachment supported.
Non-zero firstInstance in draw calls supported.
Depth bias clamping (depthBiasClamp) supported in pipeline state.
Maximum number of simultaneous color attachments.
Maximum uniform buffer binding size in bytes.
Maximum number of samplers per shader stage.
Maximum MSAA sample count for color render targets (always a power-of-two: 1, 2, 4, or 8).
Was this page helpful?