benilla-re systems structs docs

GetTextureDeviceObject

function · gx · orchestration

Address
0x44acf0 · 82 bytes, up to 0x44ad41
Signature
void * __fastcall (void *texture, uint32_t load, void *callback)
Meaning
Returns a texture's device object, loading it first when asked; 0 for a null texture
Confidence
verified, proof one
Finding
models/render#texture-stages

Finding: Texture stages in models: drawing

An element of kind 0 to 2 binds a stage per texture of its unit. Stage k binds the instance texture +0xa4[i], i the header's texture lookup entry at unit +0x10 + k, or 0 for a null handle, combine 0x811f8c by blend mode (0, 1, 1, 1, 1, 5, 5), or for version 0x101 the array +0x148 at k, and the scene float +0x14. Stages from the count up to 1 bind 0; other kinds bind 0 with combine 1 on stages 0 and 1. A lookup entry of 0x8000 or more is inverted into a texture frame state index, but zero-extended first, so the word read lies 0x100014 to 0x1ffff4 bytes before those states and indexes +0xa4 unbounded.

The derivation is in the doc.

Callers 48

Callees 2

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