| 34 | } |
| 35 | |
| 36 | donut::engine::DescriptorHandle::~DescriptorHandle() |
| 37 | { |
| 38 | if (m_DescriptorIndex >= 0) |
| 39 | { |
| 40 | auto managerPtr = m_Manager.lock(); |
| 41 | if (managerPtr) |
| 42 | managerPtr->ReleaseDescriptor(m_DescriptorIndex); |
| 43 | m_DescriptorIndex = -1; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | donut::engine::DescriptorIndex donut::engine::DescriptorHandle::GetIndexInHeap() const |
| 48 | { |
nothing calls this directly
no test coverage detected