MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / ReadTexture

Method ReadTexture

deps/LLGL/sources/Renderer/DebugLayer/DbgRenderSystem.cpp:262–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void 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

Callers

nothing calls this directly

Calls 1

ValidateImageDataSizeFunction · 0.85

Tested by

no test coverage detected