Summary: | [WHLSL] Implement f16tof32, isnormal, and f32tof16 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Thomas Denney <tdenney> | ||||||
Component: | WebGPU | Assignee: | Thomas Denney <tdenney> | ||||||
Status: | RESOLVED MOVED | ||||||||
Severity: | Normal | CC: | dino, mmaxfield | ||||||
Priority: | P2 | ||||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 176199 | ||||||||
Attachments: |
|
Description
Thomas Denney
2018-09-13 11:39:04 PDT
Created attachment 350443 [details]
WIP
Created attachment 350444 [details]
WIP
Comment on attachment 350444 [details] WIP View in context: https://bugs.webkit.org/attachment.cgi?id=350444&action=review > Tools/WebGPUShadingLanguageRI/Intrinsics.js:757 > + EPtr.box(!Number.isNaN(value.loadValue())); Nope. "normal" means both not nan and not denormalized > Tools/WebGPUShadingLanguageRI/Intrinsics.js:808 > + EPtr.box(castToFloat(bitwiseCast(Float32Array, Uint32Array, value.loadValue() & 0xFF))); We have to do more bit twiddling for this one. > Tools/WebGPUShadingLanguageRI/Intrinsics.js:815 > + EPtr.box(bitwiseCast(Uint32Array, Float32Array, castToHalf(value.loadValue())) & 0xFF); Ditto |