Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
PixelUpload.hpp File Reference

Row arithmetic shared by the backends' texture uploads. More...

#include "../../core/Types.hpp"
#include <cstring>
Include dependency graph for PixelUpload.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  esengine

Functions

void esengine::stageTextureRows (u8 *dst, const u8 *src, u32 width, u32 height, u32 srcBpp, u32 dstBpp, bool reverseRows)

Detailed Description

Row arithmetic shared by the backends' texture uploads.

A backend's texel size need not match the layout the caller allocated (WebGPU has no 3-channel format, so RGB8 sources land in RGBA8 textures). Sizing a read of caller-owned pixels with the DESTINATION row is an out-of-bounds read, so the conversion lives here, in one testable place, rather than inline in each backend.

Author
ESEngine Team
Date
2026

Definition in file PixelUpload.hpp.