MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetResourcesInternal

Method GetResourcesInternal

Source/Engine/Graphics/GPUDevice.cpp:768–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766#include "Engine/Scripting/ManagedCLR/MUtils.h"
767
768void* GPUDevice::GetResourcesInternal()
769{
770 _resourcesLock.Lock();
771 MArray* result = MCore::Array::New(GPUResource::TypeInitializer.GetClass(), _resources.Count());
772 int32 i = 0;
773 for (const auto& e : _resources)
774 MCore::GC::WriteArrayRef(result, e->GetOrCreateManagedInstance(), i++);
775 _resourcesLock.Unlock();
776 return result;
777}
778
779#endif
780

Callers

nothing calls this directly

Calls 6

LockMethod · 0.80
UnlockMethod · 0.80
NewFunction · 0.50
GetClassMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected