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

Function IsTextureIndexing

shadercompiler/TextureFunctionConversionDX11.cpp:1009–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009static bool IsTextureIndexing( ASTNode* node )
1010{
1011 return node->GetNodeType() == NT_POSTFIX_EXPRESSION &&
1012 node->GetToken() &&
1013 node->GetToken()->type == OP_LEFT_BRACKET &&
1014 node->GetChild( 0 )->GetType().IsTexture() &&
1015 node->GetChild( 0 )->GetType().arrayDimensions == 0;
1016}
1017
1018
1019ASTNode* PatchMetalTextureCalls( ParserState& state, ASTNode* node, bool rightHandSide = true )

Callers 1

PatchMetalTextureCallsFunction · 0.85

Calls 5

GetNodeTypeMethod · 0.80
GetTokenMethod · 0.80
IsTextureMethod · 0.80
GetTypeMethod · 0.45
GetChildMethod · 0.45

Tested by

no test coverage detected