File tree 1 file changed +12
-1
lines changed
renderdoc/driver/shaders/dxil
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1053,7 +1053,16 @@ static rdcstr GetResourceTypeName(const Type *type)
1053
1053
{
1054
1054
rdcstr compType = " int" ;
1055
1055
if (resType->scalarType == Type::Float)
1056
- compType = resType->bitWidth > 32 ? " double" : " float" ;
1056
+ {
1057
+ if (resType->bitWidth == 64 )
1058
+ compType = " double" ;
1059
+ else if (resType->bitWidth == 32 )
1060
+ compType = " float" ;
1061
+ else if (resType->bitWidth == 16 )
1062
+ compType = " half" ;
1063
+ else
1064
+ compType = " UNKNOWN FLOAT BITSIZE" ;
1065
+ }
1057
1066
else if (resType->scalarType == Type::Int)
1058
1067
{
1059
1068
if (resType->bitWidth == 64 )
@@ -1064,6 +1073,8 @@ static rdcstr GetResourceTypeName(const Type *type)
1064
1073
compType = " short" ;
1065
1074
else if (resType->bitWidth == 8 )
1066
1075
compType = " int8" ;
1076
+ else
1077
+ compType = " UNKNOWN INT BITSIZE" ;
1067
1078
}
1068
1079
1069
1080
if (compCount > 1 )
You can’t perform that action at this time.
0 commit comments