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

Function GetVectorDimension

hlslparser/src/HLSLParser.cpp:337–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337int32_t GetVectorDimension(HLSLBaseType type)
338{
339 if (IsScalarType(type)) return 1;
340 if (!IsVectorType(type)) return 0;
341
342 return baseTypeDescriptions[type].numComponents;
343}
344
345HLSLBaseType HalfToFloatBaseType(HLSLBaseType type)
346{

Callers 1

GetExpressionValueMethod · 0.85

Calls 2

IsScalarTypeFunction · 0.85
IsVectorTypeFunction · 0.85

Tested by

no test coverage detected