HF RL Explorer

Naga WGSL Frontend: Distinct struct types with identical fields are incorrectly treated as interchangeable

Naga WGSL Frontend: Distinct struct types with identical fields are incorrectly treated as interchangeable: a task in LegoFlow-SWE (Harbor dataset). Description When two user-defined struct types have the same fields (same names, types, and layout), the WGSL frontend considers them equivalent…

The task

**Description** When two user-defined struct types have the same fields (same names, types, and layout), the WGSL frontend considers them equivalent, violating the WGSL specification’s nominal type system. This leads to incorrect acceptance of assignments and expressions that mix the two types.

Part of Lego-X/LegoFlow-SWE.