Skip to content
Discussion options

You must be logged in to vote

I'm not even sure what encoding of f16 the GPU needs - is it IEEE 754-2008 referenced by https://docs.rs/float16/latest/float16/ ?

Yes, it is. A closer-to-relevant reference is the WGSL specification; wgpu is founded on the WebGPU specification and so a WebGPU citation would be ideal but they don't seem to have a mention of exactly what type is used in texture formats. In general, if something says floating-point of a particular power-of-2 size and doesn’t specify further details, they mean IEEE 754 formats.

You can use float16 or half and expect to get correct results.

Is Rgba16Float intended to be mostly an internal format and there's no simple way to do this out of the box, or is th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrewbaxter
Comment options

Answer selected by andrewbaxter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants