MCPcopy Create free account
hub / github.com/carbonengine/trinity / FromTokenType

Method FromTokenType

shadercompiler/Type.cpp:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46bool Type::FromTokenType( int type )
47{
48 // TODO: check if token.type is a type name
49 symbol = nullptr;
50 builtInType = type;
51 width = 1;
52 height = 1;
53 templateParameter = nullptr;
54 modifier = 0;
55 storageClass = 0;
56 arrayDimensions = 0;
57 metalTextureAccess = 0;
58 templateSamples = -1;
59 isDepthTexture = false;
60 return true;
61}
62
63bool Type::FromSymbol( const Symbol* asymbol )
64{

Callers 15

SymbolMethod · 0.45
MulIntrinsicTypeFunction · 0.45
TransposeIntrinsicTypeFunction · 0.45
AddConstantFunction · 0.45
FunctionDescription0Function · 0.45
FunctionDescription1Function · 0.45
FunctionDescription2Function · 0.45
FunctionDescription2ExFunction · 0.45
FunctionDescription3Function · 0.45
FunctionDescription4Function · 0.45
FunctionDescription8Function · 0.45
CompileEffectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected