Open petamoriken opened 9 months ago
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
mat4x4<f16>
Float16Array
DOMMatrix
partial interface DOMMatrixReadOnly { [NewObject] static DOMMatrixReadOnly fromFloat16Array(Float16Array array16); [NewObject] Float16Array toFloat16Array(); } partial interface DOMMatrix { [NewObject] static DOMMatrix fromFloat16Array(Float16Array array16); }
possibly related:
@dirkschulze
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 forFloat16Array
inDOMMatrix
. https://www.w3.org/TR/WGSL/#matrix-types