| 260 | } |
| 261 | |
| 262 | void DbgRenderSystem::ReadTexture(Texture& texture, const TextureRegion& textureRegion, const DstImageDescriptor& imageDesc) |
| 263 | { |
| 264 | auto& textureDbg = LLGL_CAST(DbgTexture&, texture); |
| 265 | |
| 266 | if (debugger_) |
| 267 | { |
| 268 | LLGL_DBG_SOURCE; |
| 269 | ValidateTextureRegion(textureDbg, textureRegion); |
| 270 | ValidateImageDataSize(textureDbg, textureRegion, imageDesc.format, imageDesc.dataType, imageDesc.dataSize); |
| 271 | } |
| 272 | |
| 273 | instance_->ReadTexture(textureDbg.instance, textureRegion, imageDesc); |
| 274 | |
| 275 | if (profiler_) |
| 276 | profiler_->frameProfile.textureReads++; |
| 277 | } |
| 278 | |
| 279 | /* ----- Sampler States ---- */ |
| 280 |
nothing calls this directly
no test coverage detected