<?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>190029</bug_id>
          
          <creation_ts>2018-09-26 22:30:39 -0700</creation_ts>
          <short_desc>[WHLSL] Add casts between vector types</short_desc>
          <delta_ts>2018-10-13 14:50:36 -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>Other</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="Thomas Denney">tdenney</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>mmaxfield</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1463885</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Denney">tdenney</who>
    <bug_when>2018-09-26 22:30:39 -0700</bug_when>
    <thetext>There are no cast operators that allow you to cast a vector (or matrix, for that matter) element-wise. For example:

operator int4(uint4 v)
{
    return int4(int(v.x), int(v.y), int(v.z), int(v.w));
}

Metal supports these; I think they would be a useful utility to add to the standard library.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464614</commentid>
    <comment_count>1</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-09-28 16:58:42 -0700</bug_when>
    <thetext>HLSL doesn&apos;t have these; I&apos;m not sure we should either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1468797</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-10-13 14:22:57 -0700</bug_when>
    <thetext>Migrated to https://api.github.com/repos/gpuweb/WHLSL/issues/20</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1468840</commentid>
    <comment_count>3</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-10-13 14:50:36 -0700</bug_when>
    <thetext>https://github.com/gpuweb/WHLSL/issues/20</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>