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

Function DimSameAsArg

shadercompiler/IntrinsicTypes.h:214–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213template <int Arg>
214void DimSameAsArg( ASTNode* call, int& width, int& height )
215{
216 ASTNode* arg0 = call->GetChildOrNull( Arg );
217 if( arg0 == nullptr )
218 {
219 width = 1;
220 height = 1;
221 }
222 else
223 {
224 width = arg0->GetType().width;
225 height = arg0->GetType().height;
226 }
227}
228
229template <int Width, int Height>
230void DimIs( ASTNode*, int& width, int& height )

Callers

nothing calls this directly

Calls 2

GetChildOrNullMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected