Module meshopt::utilities [−][src]
Functions
any_as_u8_slice | |
convert_indices_16_to_32 | |
convert_indices_32_to_16 | |
quantize_float |
Quantize a float into a floating point value with a limited number of significant mantissa bits Generates +-inf for overflow, preserves NaN, flushes denormals to zero, rounds to nearest Assumes N is in a valid mantissa precision range, which is 1..23 |
quantize_half |
Quantize a float into half-precision floating point value Generates +-inf for overflow, preserves NaN, flushes denormals to zero, rounds to nearest Representable magnitude range: [6e-5; 65504] Maximum relative reconstruction error: 5e-4 |
quantize_snorm |
Quantize a float in [-1..1] range into an N-bit fixed point snorm value Assumes reconstruction function (q / (2^(N-1)-1)), which is the case for fixed-function normalized fixed point conversion (except early OpenGL versions) Maximum reconstruction error: 1/2^N |
quantize_unorm |
Quantize a float in [0..1] range into an N-bit fixed point unorm value Assumes reconstruction function (q / (2^N-1)), which is the case for fixed-function normalized fixed point conversion Maximum reconstruction error: 1/2^(N+1) |