MCPcopy Create free account
hub / github.com/alecazam/kram / GetTypeNameHLSL

Function GetTypeNameHLSL

hlslparser/src/HLSLParser.cpp:1584–1592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1582const int _conditionalOpPriority = 1;
1583
1584const char* GetTypeNameHLSL(const HLSLType& type)
1585{
1586 if (type.baseType == HLSLBaseType_UserDefined) {
1587 return type.typeName;
1588 }
1589 else {
1590 return baseTypeDescriptions[type.baseType].typeName;
1591 }
1592}
1593
1594const char* GetTypeNameMetal(const HLSLType& type)
1595{

Callers 5

GetTypeNameMethod · 0.85
CheckTypeCastMethod · 0.85
ParseExpressionMethod · 0.85
ParseBinaryExpressionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected