Bug 189017

Summary: [WHLSL] Consider letting vectors/matrices be indexed by ints
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 176199    

Description Myles C. Maxfield 2018-08-27 15:31:43 PDT
float4 foo;
for (int i = 0; i < foo.length; ++i) {
    foo[i] = 17;
}

doesn't typecheck because there is no float4 operator[]=(float4, int, float)
Comment 1 Myles C. Maxfield 2018-10-13 15:18:38 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/85