Skip to content

Naga shouldn't evaluate overrides unless they're used by the entry point #5885

Open
@jimblandy

Description

@jimblandy

When generating code for a naga::Module, Naga currently evaluates every override-expression it can, regardless of whether that expression is statically used by the entry point(s) for which we are generating code. The WGSL committee's recent discussions clarified that errors should only be reported from override-expressions that are actually statically used.

Metadata

Metadata

Assignees

Labels

area: naga back-endOutputs of naga shader conversionnagaShader Translatortype: bugSomething isn't working

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions