mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add 'floateleven' buffer format for R11G11B10 packed data, fix unpacking
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user