Converting an 8-bit UNORM format to a floating-point number in GPUs can be done by dividing the integer by 255, which ensures an exact result in float32. While D3D11.3 specifications consider precise conversion too expensive, practical experiments show that GPUs can handle it efficiently. For those seeking exact conversion
Table of contents
Option 1: work in double (float64)Option 2: but I don’t want to use doubles either!Share this:RelatedSort: