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

Function GetNumericTypeName

hlslparser/src/HLSLParser.cpp:361–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359static HLSLBaseType ArithmeticOpResultType(HLSLBinaryOp binaryOp, HLSLBaseType t1, HLSLBaseType t2);
360
361const char* GetNumericTypeName(HLSLBaseType type)
362{
363 if (!IsNumericType(type))
364 return nullptr;
365
366 // MSL/HLSL share the same type names
367 const auto& b = baseTypeDescriptions[type];
368 return b.typeName;
369}
370
371HLSLBaseType PromoteType(HLSLBaseType toType, HLSLBaseType type)
372{

Callers

nothing calls this directly

Calls 1

IsNumericTypeFunction · 0.85

Tested by

no test coverage detected