pex-gl / pex-context

Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.
http://pex-gl.github.io/pex-context/
MIT License
160 stars 12 forks source link

Include WebGL2 feature in ctx.capabilities #129

Closed vorg closed 6 months ago

vorg commented 1 year ago

Currently e.g. ctx.capabilities.textureHalfFloat is false for WebGL2 context.

dmnsgn commented 1 year ago

The question is: are capabalities detecting "extension presence" or WebGL (1 or 2) "functionality".

dmnsgn commented 1 year ago

Note: textureFilterAnisotropic and textureFloatLinear are still extensions in WebGL2 and not enabled by default.

textureHalfFloatLinear is according to:

dmnsgn commented 6 months ago

The question is: are capabalities detecting "extension presence" or WebGL (1 or 2) "functionality".

ctx.capabilities explicit if an extension is supported, regardless of the version eg. if support was added by default in WebGL 2, capability is true.

All above fixed in v3.