Skip to content

TSL: Add support for array of varyings #30472

@qtnrtnd

Description

@qtnrtnd

Description

Currently, there is no way to create an array of varyings, unlike uniforms (e.g., uniformArray).
Here is a demo in GLSL for those who are not familiar with using varyings as arrays.

Solution

I believe a method very similar to uniformArray, which could naturally be called varyingArray, would be ideal.

Alternatives

I couldn’t find any alternative for what I did in the plain GLSL demo above.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions