benilla-re systems structs docs

CGxDeviceOpenGl::SetShaderConstants

function · gx · host

Address
0x59ec00 · 210 bytes, up to 0x59ecd1
Signature
void __thiscall (CGxDeviceOpenGl *this, uint32_t target, uint32_t start, const float *constants, uint32_t count)
Meaning
Sends constant registers to the vertex or fragment program by the device's program level
Confidence
verified, proof one
Finding
gx/slots#shader-and-cursor-slots

Finding: Shader and cursor slots in gx: the device's virtual slots

Shaders come from .bls files (Shader files); the cursor is a 32 by 32 image at +0x2890.

slotnamebaseOpenGlDirect3Ddoes
+0xdcLoadShaders0x5952400x59eb300x5a0370finds or makes the shaders of a target and file, then builds their programs
+0xe0ReleaseShader0x5955200x59ebb00x5a03d0drops a reference; the last frees the program and the shader
+0xe4SetShaderConstantspure0x59ec000x5a0630sends constant registers of the vertex (0) or pixel (1) program
+0xe8ReloadShaderpure0x59f0700x5a0680rereads one shader from a named file and rebuilds its program
+0xecShowCursor0x595c20base0x59a7b0stores whether the cursor is shown at +0x2880
+0xf0GetCursorPixels0x595c30basebasereturns the cursor's pixels, 32-bit ARGB rows of 0x80 bytes
+0xf4SetCursorHotspot0x595c40base0x59a840stores the hot spot and marks the cursor image changed

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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