mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Merge pull request #71 from Kamayuq/master
Added bit visualization to the Debugger
This commit is contained in:
@@ -814,7 +814,7 @@ namespace renderdocui.Windows
|
||||
|
||||
string reg = item.SubItems[0].Text.Trim();
|
||||
|
||||
var regexp = "^([rvo])([0-9]+)(\\.[xyzwrgba]+)?(,[xfiud])?$";
|
||||
var regexp = "^([rvo])([0-9]+)(\\.[xyzwrgba]+)?(,[xfiudb])?$";
|
||||
|
||||
var match = Regex.Match(reg, regexp);
|
||||
|
||||
@@ -878,6 +878,8 @@ namespace renderdocui.Windows
|
||||
val += vr.value.uv[elindex];
|
||||
else if (regcast == "x")
|
||||
val += String.Format("0x{0:X8}", vr.value.uv[elindex]);
|
||||
else if (regcast == "b")
|
||||
val += String.Format("{0}", Convert.ToString(vr.value.uv[elindex], 2).PadLeft(32, '0'));
|
||||
else if (regcast == "d")
|
||||
{
|
||||
if (elindex < 2)
|
||||
|
||||
Reference in New Issue
Block a user