<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>189013</bug_id>
          
          <creation_ts>2018-08-27 15:17:46 -0700</creation_ts>
          <short_desc>[WHLSL] Investigate implementing vectors and matrices in the language</short_desc>
          <delta_ts>2018-10-13 15:21:49 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebGPU</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>176199</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Myles C. Maxfield">mmaxfield</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>tdenney</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1454120</commentid>
    <comment_count>0</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-08-27 15:17:46 -0700</bug_when>
    <thetext>The problem is that operator&amp;[]() and operator&amp;.field() shouldn&apos;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&amp;.field(thread float4*) = delete;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1454121</commentid>
    <comment_count>1</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-08-27 15:18:06 -0700</bug_when>
    <thetext>Option 3: Just keep them implemented as native types.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1454124</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Denney">tdenney</who>
    <bug_when>2018-08-27 15:18:56 -0700</bug_when>
    <thetext>*** Bug 188688 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1468888</commentid>
    <comment_count>3</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-10-13 15:21:49 -0700</bug_when>
    <thetext>Migrated to https://github.com/gpuweb/WHLSL/issues/88</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>