Interface EngineCapabilities
astc: any;
blendFloat: boolean;
blendMinMax: boolean;
blendParametersPerTarget: boolean;
bptc: any;
canUseGLInstanceID: boolean;
canUseGLVertexID: boolean;
canUseTimestampForTimerQuery: boolean;
colorBufferFloat: boolean;
colorBufferHalfFloat?: boolean;
depthTextureExtension: boolean;
disableMorphTargetTexture: boolean;
drawBuffersExtension: boolean;
dualSourceBlending: boolean;
etc1: any;
etc2: any;
fragmentDepthSupported: boolean;
highPrecisionShaderSupported: boolean;
instancedArrays: boolean;
maxAnisotropy: number;
maxCombinedTexturesImageUnits: number;
maxCubemapTextureSize: number;
maxDrawBuffers?: number;
maxFragmentUniformVectors: number;
maxMSAASamples: number;
maxRenderTextureSize: number;
maxSamples?: number;
maxTexturesImageUnits: number;
maxTextureSize: number;
maxUniformBuffersPerShaderStage?: number;
maxVaryingVectors: number;
maxVertexAttribs: number;
maxVertexTextureImageUnits: number;
maxVertexUniformVectors: number;
multiview?: any;
oculusMultiview?: any;
parallelShaderCompile?: { COMPLETION_STATUS_KHR: number };
pvrtc: any;
rg11b10ufColorRenderable: boolean;
s3tc?: WEBGL_compressed_texture_s3tc;
s3tc_srgb?: WEBGL_compressed_texture_s3tc_srgb;
shaderFloatPrecision: number;
standardDerivatives: boolean;
supportComputeShaders: boolean;
supportFloatTexturesResolve: boolean;
supportOcclusionQuery: boolean;
supportReadWriteStorageTextures: boolean;
supportSRGBBuffers: boolean;
supportTransformFeedbacks: boolean;
texelFetch: boolean;
texture2DArrayMaxLayerCount: number;
textureAnisotropicFilterExtension?: EXT_texture_filter_anisotropic;
textureFloat: boolean;
textureFloatLinearFiltering: boolean;
textureFloatRender: boolean;
textureHalfFloat: boolean;
textureHalfFloatLinearFiltering: boolean;
textureHalfFloatRender: boolean;
textureLOD: boolean;
textureMaxLevel: boolean;
textureNorm16: boolean;
timerQuery?: any;
uintIndices: boolean;
vertexArrayObject: boolean;
}
Index
Properties
Properties
astc
Defines if astc texture compression is supported
blend Float
Defines if float color blending is supported
blend Min Max
Defines if the blend min max extension is supported
blend Parameters Per Target
Defines if blend parameters can be defined per target
bptc
Defines if bptc texture compression is supported
can Use GL Instance ID
In some iOS + WebGL1, gl_InstanceID (and gl_InstanceIDEXT) is undefined even if instancedArrays is true. So don't use gl_InstanceID in those cases
can Use GL Vertex ID
Defines if gl_vertexID is available
can Use Timestamp For Timer Query
Defines if timestamp can be used with timer query
color Buffer Float
Defines if float color buffer are supported
Optionalcolor Buffer Half Float
Defines if half float color buffer are supported
depth Texture Extension
Defines if depth textures are supported
disable Morph Target Texture
Defines if the morph target texture is supported.
draw Buffers Extension
Defines if draw buffers extension is supported
dual Source Blending
Defines if dual source blending is supported
etc1
Defines if etc1 texture compression is supported
etc2
Defines if etc2 texture compression is supported
fragment Depth Supported
Defines if depth reading in the fragment shader is supported
high Precision Shader Supported
Defines if high precision shaders are supported
instanced Arrays
Defines if instancing is supported
max Anisotropy
Gets the maximum level of anisotropy supported
max Combined Textures Image Units
Maximum textures units in the entire pipeline
max Cubemap Texture Size
Maximum cube texture size
Optionalmax Draw Buffers
Maximum draw buffers
max Fragment Uniform Vectors
Maximum number of uniforms per fragment shader
max MSAA Samples
Max number of texture samples for MSAA
max Render Texture Size
Maximum render texture size
Optionalmax Samples
Maximum texture samples
max Textures Image Units
Maximum textures units per fragment shader
max Texture Size
Maximum texture size
Optionalmax Uniform Buffers Per Shader Stage
Maximum number of uniform buffers that can be bound to a single shader stage. Only reported by engines where this is a hard, enforced limit (WebGPU). Left undefined elsewhere.
max Varying Vectors
Maximum number of varyings
max Vertex Attribs
Maximum number of vertex attributes
max Vertex Texture Image Units
Maximum texture units per vertex shader
max Vertex Uniform Vectors
Maximum number of uniforms per vertex shader
Optionalmultiview
Defines if multiview is supported (https://www.khronos.org/registry/webgl/extensions/WEBGL_multiview/)
Optionaloculus Multiview
Defines if oculus multiview is supported (https://developer.oculus.com/documentation/oculus-browser/latest/concepts/browser-multiview/)
Optionalparallel Shader Compile
Function used to let the system compiles shaders in background
pvrtc
Defines if pvrtc texture compression is supported
rg11b10uf Color Renderable
Defines if RG11B10UFloat texture format is color renderable
Optionals3tc
Defines if s3tc texture compression is supported
Optionals3tc_ srgb
Defines if s3tc sRGB texture compression is supported
shader Float Precision
The number of bits that can be accurately represented in shader floats
standard Derivatives
Defines if standard derivatives (dx/dy) are supported
support Compute Shaders
Defines if compute shaders are supported by the engine
support Float Textures Resolve
Defines if float textures like r32f, rg32f or rgba32f support being used as a resolve target
support Occlusion Query
Defines if occlusion queries are supported by the engine
support Read Write Storage Textures
Defines if read-only and read-write storage textures are supported (WebGPU only, requires the readonly_and_readwrite_storage_textures WGSL language feature)
support SRGB Buffers
Defines if sRGB texture formats are supported
support Transform Feedbacks
Defines if transform feedbacks are supported
texel Fetch
Defines if texelFetch shader command is supported
texture2 D Array Max Layer Count
Defines the maximum layer count for a 2D Texture array.
Optionaltexture Anisotropic Filter Extension
Gets the webgl extension for anisotropic filtering (null if not supported)
texture Float
Defines if float textures are supported
texture Float Linear Filtering
Defines if float texture linear filtering is supported
texture Float Render
Defines if rendering to float textures is supported
texture Half Float
Defines if half float textures are supported
texture Half Float Linear Filtering
Defines if half float texture linear filtering is supported
texture Half Float Render
Defines if rendering to half float textures is supported
texture LOD
Defines if textureLOD shader command is supported
texture Max Level
Defines if texture max level are supported
texture Norm16
Defines if EXT_texture_norm16 is available which enables the following texture formats: R16_EXT, RG16_EXT, RGB16_EXT, RGBA16_EXT, R16_SNORM_EXT, RG16_SNORM_EXT, RGB16_SNORM_EXT, RGBA16_SNORM_EXT
Optionaltimer Query
Gets disjoint timer query extension (null if not supported)
uint Indices
Defines if 32 bits indices are supported
vertex Array Object
Defines if vertex array objects are supported
Interface used to describe the capabilities of the engine relatively to the current browser