Author: sagamusix
Date: Sat Apr 20 22:16:42 2024
New Revision: 20624
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20624
Log:
[Imp] NatVis: Better visualization of packed little-endian floats. For big-endian floats it doesn't really seem to be possible to achieve the same.
Modified:
trunk/OpenMPT/build/vs/debug/openmpt.natvis
Modified: trunk/OpenMPT/build/vs/debug/openmpt.natvis
==============================================================================
--- trunk/OpenMPT/build/vs/debug/openmpt.natvis Sat Apr 20 21:27:18 2024 (r20623)
+++ trunk/OpenMPT/build/vs/debug/openmpt.natvis Sat Apr 20 22:16:42 2024 (r20624)
@@ -130,4 +130,9 @@
<Type Name="mpt::mptx::packed<unsigned char,1,unsigned char>">
<DisplayString>{(uint8)data[0]}</DisplayString>
</Type>
+
+ <!-- Floating-point Little-Endian -->
+ <Type Name="mpt::mptx::IEEE754binary32Emulated<3,2,1,0>">
+ <DisplayString>{*(float*)&bytes}</DisplayString>
+ </Type>
</AutoVisualizer>
|