| 221 | } |
| 222 | |
| 223 | void FontTextureAtlas::EnsureTextureCreated() const |
| 224 | { |
| 225 | if (_texture->IsAllocated() == false) |
| 226 | { |
| 227 | // Initialize atlas texture |
| 228 | if (_texture->Init(GPUTextureDescription::New2D(_width, _height, 1, _format, GPUTextureFlags::ShaderResource))) |
| 229 | { |
| 230 | LOG(Warning, "Cannot initialize font atlas texture."); |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | bool FontTextureAtlas::HasDataSyncWithGPU() const |
| 236 | { |
no test coverage detected