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
@@ -1834,14 +1834,21 @@ void D3D11PipelineStateViewer::resource_itemActivated(QTreeWidgetItem *item, int
else
{
const ResourceFormat &fmt = view.res.Format;
if(fmt.special && fmt.specialFormat == eSpecial_R10G10B10A2)
if(fmt.special)
{
if(fmt.compType == eCompType_UInt)
format = "uintten";
if(fmt.compType == eCompType_UNorm)
format = "unormten";
if(fmt.specialFormat == eSpecial_R10G10B10A2)
{
if(fmt.compType == eCompType_UInt)
format = "uintten";
if(fmt.compType == eCompType_UNorm)
format = "unormten";
}
else if(fmt.specialFormat == eSpecial_R11G11B10)
{
format = "floateleven";
}
}
else if(!fmt.special)
else
{
switch(fmt.compByteWidth)
{
@@ -1822,14 +1822,21 @@ void D3D12PipelineStateViewer::resource_itemActivated(QTreeWidgetItem *item, int
else
{
const ResourceFormat &fmt = view.res.Format;
if(fmt.special && fmt.specialFormat == eSpecial_R10G10B10A2)
if(fmt.special)
{
if(fmt.compType == eCompType_UInt)
format = "uintten";
if(fmt.compType == eCompType_UNorm)
format = "unormten";
if(fmt.specialFormat == eSpecial_R10G10B10A2)
{
if(fmt.compType == eCompType_UInt)
format = "uintten";
if(fmt.compType == eCompType_UNorm)
format = "unormten";
}
else if(fmt.specialFormat == eSpecial_R11G11B10)
{
format = "floateleven";
}
}
else if(!fmt.special)
else
{
switch(fmt.compByteWidth)
{