benilla-re systems structs docs

BlitReplace

function · charactermodel · primitive

Address
0x477c80 · 299 bytes, up to 0x477daa
Signature
void __stdcall (void *src, void *dst, void *dstPos, void *srcPos, void *size, void *desc)
Meaning
Copies a rectangle of 16-bit pixels into every mip level of the composite
Confidence
verified, proof one
Finding
charactermodel/composite#replace-kernel
Test
charactermodel::cm_fanout_f_blit_copy

Finding: Replace kernel in charactermodel: composite

0x477c80(source mips, target mips, dest position, source position, size, descriptor) copies a rectangle of 16-bit pixels with no blending. For each mip level from 0 to the descriptor's mip count it copies size.h rows of size.w pixels from the source level at its position to the target level at its position, then halves the pitches, the positions and the size, keeping the size at least 1. The target pitch starts at 0x200 bytes and the source pitch at twice the descriptor's width.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.