这是indexloc提供的服务,不要输入任何密码
Skip to content

uniformity analysis: desugar module-scope variables as if they are declared inside the entry point and passed down as parameters #5445

@dneto0

Description

@dneto0

Spawned by the discussion in #5435

Currently, all module-scoped mutable variables are considered non-uniform. This is a conservative choice.
Often the variable is initialized with uniform value and never changed thereafter, and therefore the value it contains is always uniform.

Consider enhancing uniformity analysis by a desugaring rule: treat mutable module-scoped variables as having been declared by the entry point, and then passed down through the call tree. (This works directly for private variables). Then uniformity analysis of parameter passing should take care of the rest.

I don't currently have an opinion about what milestone this should be in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions