| 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 | { |
no test coverage detected