| 243 | } |
| 244 | |
| 245 | void DbgRenderSystem::WriteTexture(Texture& texture, const TextureRegion& textureRegion, const SrcImageDescriptor& imageDesc) |
| 246 | { |
| 247 | auto& textureDbg = LLGL_CAST(DbgTexture&, texture); |
| 248 | |
| 249 | if (debugger_) |
| 250 | { |
| 251 | LLGL_DBG_SOURCE; |
| 252 | ValidateTextureRegion(textureDbg, textureRegion); |
| 253 | ValidateImageDataSize(textureDbg, textureRegion, imageDesc.format, imageDesc.dataType, imageDesc.dataSize); |
| 254 | } |
| 255 | |
| 256 | instance_->WriteTexture(textureDbg.instance, textureRegion, imageDesc); |
| 257 | |
| 258 | if (profiler_) |
| 259 | profiler_->frameProfile.textureWrites++; |
| 260 | } |
| 261 | |
| 262 | void DbgRenderSystem::ReadTexture(Texture& texture, const TextureRegion& textureRegion, const DstImageDescriptor& imageDesc) |
| 263 | { |
nothing calls this directly
no test coverage detected