mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
RD DXIL disassebmly: display C style type names
i1 -> bool i8 -> int8 i16 -> short i32 -> int i64 -> long
This commit is contained in:
@@ -2862,7 +2862,23 @@ rdcstr Type::toString() const
|
||||
switch(scalarType)
|
||||
{
|
||||
case Void: return "void";
|
||||
case Int: return StringFormat::Fmt("i%u", bitWidth);
|
||||
case Int:
|
||||
if(DXIL::dxcStyleFormatting)
|
||||
{
|
||||
return StringFormat::Fmt("i%u", bitWidth);
|
||||
}
|
||||
else
|
||||
{
|
||||
switch(bitWidth)
|
||||
{
|
||||
case 1: return "bool";
|
||||
case 8: return "int8";
|
||||
case 16: return "short";
|
||||
case 32: return "int";
|
||||
case 64: return "long";
|
||||
default: return StringFormat::Fmt("i%u", bitWidth);
|
||||
}
|
||||
}
|
||||
case Float:
|
||||
switch(bitWidth)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user