Bug 188688 - [WHLSL] Replace builtin vectors with native structs with operator&.field disabled
Summary: [WHLSL] Replace builtin vectors with native structs with operator&.field disa...
Status: RESOLVED DUPLICATE of bug 189013
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Thomas Denney
URL:
Keywords:
Depends on: 187988
Blocks: 176199
  Show dependency treegraph
 
Reported: 2018-08-16 19:45 PDT by Thomas Denney
Modified: 2018-10-13 15:29 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Denney 2018-08-16 19:45:24 PDT
Rather than add a lot of intrinsics for vector types, instead implement them in the language.
Comment 1 Thomas Denney 2018-08-18 14:56:44 PDT
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;
Comment 2 Thomas Denney 2018-08-27 15:18:56 PDT

*** This bug has been marked as a duplicate of bug 189013 ***
Comment 3 Myles C. Maxfield 2018-10-13 15:29:28 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/95