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:
Jake Turner
2024-11-28 17:33:26 +00:00
parent 2c55fcac93
commit eab144bd3f
@@ -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);