benilla-re systems structs docs

M2CacheInitialize

function · models · primitive

Address
0x706510 · 861 bytes, up to 0x70686c
Meaning
Grants the requested model features the device supports, starts the helper thread, loads the model shaders
Confidence
verified, proof one
Finding
models/cache#feature-mask
Test
models::noise_table_randf01_difftest

Finding: Feature mask in models: the cache

M2Initialize grants each requested feature bit the device supports and stores the result at +0x4. Bit 4 (the helper thread) needs more than one processor; bit 8 (vertex shaders) a device vertex-program level of 1 (Direct3D vertex shader 2.0 or later) or 2 (OpenGL ARB); bit 0x10 (pixel shaders) pixel shader version 4 and bit 8 granted; bit 1 a nonzero device field +0xbc; bit 2 a positive +0xc0, unless the vertex-program level is 2 and bit 8 is granted; bit 0x20 is granted as requested. A second call logs Model2: M2Initialize called mode than once and returns 1.

The derivation is in the doc.

Callers 1

Callees 12

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