MCPcopy Create free account
hub / github.com/KTStephano/StratusGFX / InsertMeshPending_

Method InsertMeshPending_

Source/Engine/StratusGpuCommandBuffer.cpp:283–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

IsFinalizedMethod · 0.80

Tested by

no test coverage detected