[fxtf-drafts] [geometry] Add `Float16Array` support in `DOMMatrix` (#546)

petamoriken has just created a new issue for https://github.com/w3c/fxtf-drafts:

== [geometry] Add `Float16Array` support in `DOMMatrix` ==
Stage 3 Float16Array is currently in progress at TC39 and is in the process of being implemented in each engine.
https://github.com/tc39/proposal-float16array

WebGPU can handle `mat4x4<f16>` by enabling the f16 extension. It would be easier to handle it by including support for `Float16Array` in `DOMMatrix`.
https://www.w3.org/TR/WGSL/#matrix-types

```webidl
partial interface DOMMatrixReadOnly {
  [NewObject] static DOMMatrixReadOnly fromFloat16Array(Float16Array array16);
  [NewObject] Float16Array toFloat16Array();
}

partial interface DOMMatrix {
   [NewObject] static DOMMatrix fromFloat16Array(Float16Array array16);
}
```

Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/546 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 28 January 2024 08:52:16 UTC