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