benilla-re systems structs docs

CGxDeviceD3d::SetShaderConstants

function · gx · host

Address
0x5a0630 · 76 bytes, up to 0x5a067b
Signature
void __thiscall (CGxDeviceD3d *this, uint32_t target, uint32_t start, const float *constants, uint32_t count)
Meaning
Sends constant registers with SetVertexShaderConstantF or SetPixelShaderConstantF
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 0

None by a direct call or jump.

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