mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 00:16:45 +00:00
DXIL disassembly use correct int type name for resource type dislpay
Previously all integer types were shown as "int" including "int16_t" typed buffers
This commit is contained in:
@@ -1054,6 +1054,17 @@ static rdcstr GetResourceTypeName(const Type *type)
|
||||
rdcstr compType = "int";
|
||||
if(resType->scalarType == Type::Float)
|
||||
compType = resType->bitWidth > 32 ? "double" : "float";
|
||||
else if(resType->scalarType == Type::Int)
|
||||
{
|
||||
if(resType->bitWidth == 64)
|
||||
compType = "long";
|
||||
else if(resType->bitWidth == 32)
|
||||
compType = "int";
|
||||
else if(resType->bitWidth == 16)
|
||||
compType = "short";
|
||||
else if(resType->bitWidth == 8)
|
||||
compType = "int8";
|
||||
}
|
||||
|
||||
if(compCount > 1)
|
||||
compType += ToStr(compCount);
|
||||
|
||||
Reference in New Issue
Block a user