Advertisement

Read values after map on a R16G16B16A16_FLOAT

Started by May 21, 2017 02:37 PM
0 comments, last by galop1n 7 years, 8 months ago

Hi!

This is probably a stupid questions, but I try to read back a staging texture on cpu, the format is 16bit float, however to my limited knowledge there is no standard 16bit float in C++, how can I read the values in a meaningful way?

The mapping procedure work, I tried with 32bit float and I read them fine.

Thank you very much!

Jacques

You can use the header directxmath_packedvector.h, part of directxmath to do the conversions.

Sixteen bits float on gpu are well documented, you can also write your own conversion. It is one bit sign, 5 exponent and 10 mantissa.

This topic is closed to new replies.

Advertisement