benilla-re systems structs docs

CGxDeviceOpenGl::ApplyPixelProgram

function · gx · orchestration

Address
0x59e310 · 305 bytes, up to 0x59e440
Signature
void __thiscall (CGxDeviceOpenGl *this, void *program)
Meaning
Binds a fragment program, building it on first use, or disables the fragment path for null
Confidence
verified, proof one
Finding
gx/renderstate#programs

Finding: Programs in gx: render state

Direct3D sets the pixel shader (device slot +0x1ac) for id 0x3f and the vertex shader (+0x170) for id 0x40, creating the shader from the object's code on first use (0x5a0250, 0x5a02e0) and calling 0x5955f0(object, 1) after it. OpenGL binds the program targets 0x8804 (fragment) and 0x8620 (vertex) through 0x59e310 and 0x59e480, after building the program on first use (0x59e530, 0x59e700). A null object unbinds.

The derivation is in the doc.

Callers 1

Callees 4

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