duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

bitfield.natvis (790B)


      1 <?xml version="1.0" encoding="utf-8"?> 
      2 <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
      3   <Type Name="BitField&lt;*,bool,*,1&gt;">
      4     <DisplayString><![CDATA[{((data >> $T2) & 1) != 0}]]></DisplayString>
      5     <Expand>
      6       <Item Name="[bit index]">$T2</Item>
      7     </Expand>
      8   </Type>
      9   <Type Name="BitField&lt;*,*,*,*&gt;">
     10     <DisplayString><![CDATA[{((data >> $T3) & ((1 << $T4) - 1))}]]></DisplayString>
     11     <Expand>
     12       <Item Name="[bit index]">$T3</Item>
     13       <Item Name="[bit count]">$T4</Item>
     14       <Item Name="[bit mask]"><![CDATA[((1 << $T4) - 1) << $T3]]></Item>
     15       <Item Name="[masked bits]"><![CDATA[(data >> $T3) & (((1 << $T4) - 1) << $T3)]]></Item>
     16       <Item Name="[all bits]">data</Item>
     17     </Expand>
     18   </Type>
     19 </AutoVisualizer>