Bug 188688
Summary: | [WHLSL] Replace builtin vectors with native structs with operator&.field disabled | ||
---|---|---|---|
Product: | WebKit | Reporter: | Thomas Denney <tdenney> |
Component: | WebGPU | Assignee: | Thomas Denney <tdenney> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | dino, mmaxfield |
Priority: | P2 | ||
Version: | Other | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 187988 | ||
Bug Blocks: | 176199 |
Thomas Denney
Rather than add a lot of intrinsics for vector types, instead implement them in the language.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Thomas Denney
We could alternatively choose to implement them in the standard library by introducing new syntax to delete default operators:
struct int2 {
int x;
int y;
}
native int operator&.x(int2) = delete;
native int operator&.y(int2) = delete;
Thomas Denney
*** This bug has been marked as a duplicate of bug 189013 ***
Myles C. Maxfield
Migrated to https://github.com/gpuweb/WHLSL/issues/95