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

Method WriteTexture

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

Source from the content-addressed store, hash-verified

243}
244
245void 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
262void DbgRenderSystem::ReadTexture(Texture& texture, const TextureRegion& textureRegion, const DstImageDescriptor& imageDesc)
263{

Callers

nothing calls this directly

Calls 1

ValidateImageDataSizeFunction · 0.85

Tested by

no test coverage detected