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

Method CanBeUpdated

Source/Engine/Graphics/Textures/StreamingTexture.cpp:174–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174bool StreamingTexture::CanBeUpdated() const
175{
176 // Streaming Texture cannot be updated if:
177 // - is not initialized
178 // - mip data uploading job running
179 // - resize texture job running
180 if (IsInitialized())
181 {
182 ScopeLock lock(_owner->GetOwnerLocker());
183 return _streamingTasks.Count() == 0;
184 }
185 return false;
186}
187
188class StreamTextureResizeTask : public GPUTask
189{

Callers

nothing calls this directly

Calls 2

IsInitializedFunction · 0.70
CountMethod · 0.45

Tested by

no test coverage detected