Bug 189013
Summary: | [WHLSL] Investigate implementing vectors and matrices in the language | ||
---|---|---|---|
Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> |
Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED MOVED | ||
Severity: | Normal | CC: | tdenney |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 176199 |
Myles C. Maxfield
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;
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Myles C. Maxfield
Option 3: Just keep them implemented as native types.
Thomas Denney
*** Bug 188688 has been marked as a duplicate of this bug. ***
Myles C. Maxfield
Migrated to https://github.com/gpuweb/WHLSL/issues/88