Skip to content

Add texSubElementImage2D #147

Description

@progers

The texImage2D function defines a texture's dimensions and format, meaning it can trigger expensive GPU memory allocations or re-allocations if the texture already exists. Conversely, texSubImage2D strictly updates the pixel data within a previously allocated texture, guaranteeing no memory re-allocation and providing much faster performance for continuous updates.

HTML-in-canvas needs to support the faster update of an existing texture. We should add texSubElementImage2D to the WebGL API.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions