MCPcopy Create free account
hub / github.com/Unity-Technologies/HLSLcc / SetVectorType

Function SetVectorType

src/DataTypeAnalysis.cpp:15–43  ·  view source on GitHub ↗

Helper function to set the vector type of 1 or more components in a vector If the existing values (in vector we're writing to) are all SVT_VOID, just upgrade the value and we're done Otherwise, set all the components in the vector that currently are set to that same value OR are now being written to to the "highest" type value (ordering int->uint->float)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

MarkOperandAsFunction · 0.85
SetDataTypesMethod · 0.85

Calls 1

SelectHigherTypeFunction · 0.85

Tested by

no test coverage detected