Skip to content

feat: rgba swizzles for vectors #2130

@iwoplaza

Description

@iwoplaza

Right now, vectors only have .xyzw swizzles. The aim of this task is to add .rgba swizzles, doubling the amount of total properties on vectors.

Note that we don't want to support mixing component variants, so for example a .xrgy swizzle is invalid.

Code generation should also be updated to support this functionality, mainly "accessProp.ts".

Create proper tests for access of these new swizzles, both in regular JS code, as well as in "use gpu" functions.

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