| 120 | m_SearchStart = index + 1; |
| 121 | m_AllocatedDescriptors[index] = true; |
| 122 | m_Descriptors[index] = item; |
| 123 | m_DescriptorIndexMap[item] = index; |
| 124 | m_Device->writeDescriptorTable(m_DescriptorTable, item); |
| 125 | |
| 126 | if (item.resourceHandle) |
| 127 | item.resourceHandle->AddRef(); |
| 128 | |
| 129 | return index; |
| 130 | } |
| 131 |