Skip to content

[Impeller] Add feature to allow attribute mapping of uint32s host-side to vec4s shader-side #102778

Open

Description

@bdero

Once the GLES 2 renderer lands, impellerc could be extended to map the 4
color bytes to vec4s in the shader, i.e.:
glVertexAttribPointer(2, 4, GL_UNSIGNED_BYTE, false, 4, nullptr);
...as opposed to:
glVertexAttribPointer(2, 4, GL_FLOAT, false, 16, nullptr);

impellerc could e.g. detect some kind of special naming convention hint
from the attribute name to support this case:
in vec4 vertex_color__byte;

Such a feature would remove the need to convert color data in some cases, as in flutter-team-archive/engine#32981.

Activity

  1. added
    engineflutter/engine related. See also e: labels.
    e: impellerImpeller rendering backend issues and features requests
    on Apr 28, 2022
  2. added
    c: proposalA detailed proposal for a change to Flutter
    P3Issues that are less important to the Flutter project
    on May 2, 2022
  3. moved this to Needs Triage in Impelleron May 26, 2022
  4. moved this from Needs Triage to OpenGL Backend in Impelleron May 26, 2022
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

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilitye: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions