Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[geometry] Add Float16Array support in DOMMatrix #546

Open
petamoriken opened this issue Jan 28, 2024 · 2 comments
Open

[geometry] Add Float16Array support in DOMMatrix #546

petamoriken opened this issue Jan 28, 2024 · 2 comments

Comments

@petamoriken
Copy link

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

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

partial interface DOMMatrix {
   [NewObject] static DOMMatrix fromFloat16Array(Float16Array array16);
}
@svgeesus
Copy link
Contributor

@svgeesus
Copy link
Contributor

svgeesus commented Mar 5, 2024

@dirkschulze

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants