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

Function PromoteType

hlslparser/src/HLSLParser.cpp:371–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371HLSLBaseType PromoteType(HLSLBaseType toType, HLSLBaseType type)
372{
373 return HLSLBaseType(NumericToBaseType(baseTypeDescriptions[type].numericType) +
374 baseTypeDescriptions[type].dimensionType - DimensionType_Scalar);
375}
376
377/** This structure stores a HLSLFunction-like declaration for an intrinsic function */
378struct Intrinsic {

Callers 1

OutputExpressionMethod · 0.85

Calls 2

HLSLBaseTypeEnum · 0.85
NumericToBaseTypeFunction · 0.85

Tested by

no test coverage detected