mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-25 16:20:36 +00:00
Fix case where buffer format wasn't auto-populated correctly
This commit is contained in:
1 parent
4dcb89966c
commit
db04714f8d
1 file changed
+4
-4
@@ -1533,7 +1533,7 @@ namespace renderdocui.Windows.PipelineState
|
||||
if (view.Format.compType == FormatComponentType.UInt) format = "uintten";
|
||||
if (view.Format.compType == FormatComponentType.UNorm) format = "unormten";
|
||||
}
|
||||
else
|
||||
else if (!view.Format.special)
|
||||
{
|
||||
switch (view.Format.compByteWidth)
|
||||
{
|
||||
@@ -1567,12 +1567,12 @@ namespace renderdocui.Windows.PipelineState
|
||||
|
||||
format += view.Format.compCount;
|
||||
}
|
||||
|
||||
format += " " + r.name + ";";
|
||||
}
|
||||
|
||||
if (format == "" && r.variableType.Name.Length > 0)
|
||||
format = r.variableType.Name + " " + r.name + ";";
|
||||
format = r.variableType.Name;
|
||||
|
||||
format += " " + r.name + ";";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user