| 530 | } |
| 531 | |
| 532 | int ClearRenderConstant(HComponentRenderConstants constants, dmhash_t name_hash) |
| 533 | { |
| 534 | int index = FindRenderConstant(constants, name_hash); |
| 535 | if (index >= 0) |
| 536 | { |
| 537 | constants->m_RenderConstants.EraseSwap(index); |
| 538 | } |
| 539 | |
| 540 | dmhash_t* checksum = constants->m_ConstantChecksums.Get(name_hash); |
| 541 | if (checksum) |
| 542 | { |
| 543 | constants->m_ConstantChecksums.Erase(name_hash); |
| 544 | constants->m_Updated |= checksum != 0; // did it exist? |
| 545 | } |
| 546 | return checksum != 0 ? 1 : 0; |
| 547 | } |
| 548 | |
| 549 | void HashRenderConstants(HComponentRenderConstants constants, HashState32* state) |
| 550 | { |