MCPcopy Create free account
hub / github.com/defold/defold / AddPredicateTag

Function AddPredicateTag

engine/render/src/render/render.cpp:1327–1336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1325 }
1326
1327 Result AddPredicateTag(HPredicate predicate, dmhash_t tag)
1328 {
1329 if (predicate->m_TagCount == dmRender::Predicate::MAX_TAG_COUNT)
1330 {
1331 return RESULT_OUT_OF_RESOURCES;
1332 }
1333 predicate->m_Tags[predicate->m_TagCount++] = tag;
1334 std::sort(predicate->m_Tags, predicate->m_Tags+predicate->m_TagCount);
1335 return RESULT_OK;
1336 }
1337
1338 void SetupContextEventCallback(void* context, ContextEventCallback callback)
1339 {

Callers 1

RenderScript_PredicateFunction · 0.85

Calls 1

sortFunction · 0.50

Tested by

no test coverage detected