* State and capability management * Transform feedback fixes (updates to @gnavvy tf-feedback example_ * Documentation and Demo improvements
1.3 KiB
WebGL Feature Ideas
A scratchpad for roadmap ideas...
Resource
Stats
The Resource class will track allocations and initializations of resources, making it easy to see when your application is not reusing resources.
Context Loss
The typical life cycle of a WebGL resource looks something like this:
- Creating a handle
- Initializing a handle
- Using the handle
- Destroying a handle (either explicitly or by letting it be garbage collected)
Context loss can happen at any time between 1 and 4, at which time resources will be invalidated and handles will have to be recreated and reinitialized.
The subclasses will store initialization parameters so that the object can be automatically recreated in case of context loss.
Sharing Resources between WebGL contexts
The plan is that the Resource class will be extended (SharedResource?)
to implement context sharing support as soon as the
WEBGL_shared_resources
extension becomes available in a major browser.
The assumption is that an async aquire method will be available that will
change the gl context stored in the Resource.
Vertex Attributes
- Consolidate vertex attributes and VertexAttributeObjects