| 281 | } |
| 282 | |
| 283 | bool GpuCommandBuffer::InsertMeshPending_(RenderComponent* component, MeshPtr mesh) |
| 284 | { |
| 285 | if (!mesh->IsFinalized()) { |
| 286 | auto pending = pendingMeshUpdates_.find(component); |
| 287 | if (pending == pendingMeshUpdates_.end()) { |
| 288 | pending = pendingMeshUpdates_.insert(std::make_pair( |
| 289 | component, |
| 290 | std::unordered_set<MeshPtr>() |
| 291 | )).first; |
| 292 | } |
| 293 | |
| 294 | pending->second.insert(mesh); |
| 295 | |
| 296 | return true; |
| 297 | } |
| 298 | |
| 299 | return false; |
| 300 | } |
| 301 | |
| 302 | void GpuCommandReceiveBuffer::EnsureCapacity(const GpuCommandBufferPtr& buffer) { |
| 303 | const size_t capacity = capacityBytes_ / sizeof(GpuDrawElementsIndirectCommand); |
nothing calls this directly
no test coverage detected