Bug 189017 - [WHLSL] Consider letting vectors/matrices be indexed by ints
Summary: [WHLSL] Consider letting vectors/matrices be indexed by ints
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Blocks: 176199
  Show dependency treegraph
Reported: 2018-08-27 15:31 PDT by Myles C. Maxfield
Modified: 2018-10-13 15:18 PDT (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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