luma.gl icon indicating copy to clipboard operation
luma.gl copied to clipboard

Tracker: v6.0 Attribute Handling Refactor Follow-up

Open ibgreen opened this issue 6 years ago • 2 comments

Background

Tracker issue for various additional work stemming from the changes and refactors in v6.0. The various tasks are expected to be spread out across 6.x releases.

Optimize Uniform Settings

  • [ ] Program: Create separate function to bind texture units. Call before each draw call (possibly optionally).
  • [x] Program: Stop setting all uniforms before each draw call.
  • [x] Program: Restore & improve uniform diffing to avoid resetting uniforms.
  • [ ] Program: Investigate letting app specify texture units for textures. And set texture units directly. To make luma cover intended use of texture units.

UniformBlock support

  • [ ] Program: Handle uniform block indices like texture units described above.
  • [ ] ProgramConfiguration: Add support for uniform blocks

VertexArray

  • [x] VertexArray: Add option to "unbind" to avoid conflicts with TransformFeedback.
  • [x] VertexArray: Investigate using "only bind during use" to cover WebGL1 instead of Khronos polyfill? to save on bundle size and complexity

To Do List

  • [ ] Add label and assign to milestone
  • [ ] Coding
  • [ ] Doc update
  • [ ] Whats new update
  • [ ] Test

ibgreen avatar Jun 25 '18 14:06 ibgreen

@ibgreen is this still relevant?

tsherif avatar Apr 11 '19 16:04 tsherif

It could be worth going through this together, and then you can make the decision.

ibgreen avatar Apr 11 '19 17:04 ibgreen