Add 'floateleven' buffer format for R11G11B10 packed data, fix unpacking

This commit is contained in:
baldurk
2017-03-20 13:02:20 +00:00
parent 8badc43028
commit d2d86b5726
9 changed files with 150 additions and 38 deletions
@@ -2042,10 +2042,17 @@ namespace renderdocui.Windows.PipelineState
{
if (view != null)
{
if (view.Format.special && view.Format.specialFormat == SpecialFormat.R10G10B10A2)
if (view.Format.special)
{
if (view.Format.compType == FormatComponentType.UInt) format = "uintten";
if (view.Format.compType == FormatComponentType.UNorm) format = "unormten";
if (view.Format.specialFormat == SpecialFormat.R10G10B10A2)
{
if (view.Format.compType == FormatComponentType.UInt) format = "uintten";
if (view.Format.compType == FormatComponentType.UNorm) format = "unormten";
}
else if (view.Format.specialFormat == SpecialFormat.R11G11B10)
{
format = "floateleven";
}
}
else if (!view.Format.special)
{
@@ -1721,10 +1721,17 @@ namespace renderdocui.Windows.PipelineState
{
if (view != null)
{
if (view.Format.special && view.Format.specialFormat == SpecialFormat.R10G10B10A2)
if (view.Format.special)
{
if (view.Format.compType == FormatComponentType.UInt) format = "uintten";
if (view.Format.compType == FormatComponentType.UNorm) format = "unormten";
if (view.Format.specialFormat == SpecialFormat.R10G10B10A2)
{
if (view.Format.compType == FormatComponentType.UInt) format = "uintten";
if (view.Format.compType == FormatComponentType.UNorm) format = "unormten";
}
else if (view.Format.specialFormat == SpecialFormat.R11G11B10)
{
format = "floateleven";
}
}
else if (!view.Format.special)
{