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

Method Flush

Source/Engine/Render2D/FontTextureAtlas.cpp:205–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void FontTextureAtlas::Flush()
206{
207 if (_isDirty)
208 {
209 EnsureTextureCreated();
210
211 // Upload data to the GPU
212 BytesContainer data;
213 data.Link(_data);
214 auto task = _texture->UploadMipMapAsync(data, 0);
215 if (task)
216 task->Start();
217
218 // Clear dirty flag
219 _isDirty = false;
220 }
221}
222
223void FontTextureAtlas::EnsureTextureCreated() const
224{

Callers

nothing calls this directly

Calls 3

UploadMipMapAsyncMethod · 0.80
LinkMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected