Bug 189013 - [WHLSL] Investigate implementing vectors and matrices in the language
Summary: [WHLSL] Investigate implementing vectors and matrices in the language
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
: 188688 (view as bug list)
Depends on:
Blocks: 176199
  Show dependency treegraph
Reported: 2018-08-27 15:17 PDT by Myles C. Maxfield
Modified: 2018-10-13 15:21 PDT (History)
1 user (show)

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:17:46 PDT
The problem is that operator&[]() and operator&.field() shouldn't be generated for these types.

2 possible ways we can do this:
A) The compiler just magically knows that these types are special. They are identified by (name, the fact that they come from the standard library).
B) New syntax in the standard library. Something like
float operator&.field(thread float4*) = delete;
Comment 1 Myles C. Maxfield 2018-08-27 15:18:06 PDT
Option 3: Just keep them implemented as native types.
Comment 2 Thomas Denney 2018-08-27 15:18:56 PDT
*** Bug 188688 has been marked as a duplicate of this bug. ***
Comment 3 Myles C. Maxfield 2018-10-13 15:21:49 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/88