benilla-re systems structs docs

GetUiPixelShader

function · ui · orchestration

Address
0x770620 · 36 bytes, up to 0x770643
Meaning
Answers the interface pixel shader at an index when it is usable, else 0
Confidence
verified, proof one
Finding
ui/texture#desaturating

Finding: Desaturating in ui: texture colour and drawing

Texture:SetDesaturated(flag) binds a pixel shader to the texture and answers the number 1, or nil when the device cannot run the shader. A missing argument is true. Turning it off clears the slot only when it holds that shader. IsDesaturated() answers 1 only when the slot holds the usable shader, else nil, so a device without the shader cannot tell "off" from "unsupported". A desaturated quad takes its colour from the shader and not from the fixed combine; the weights are in the shader file Shaders\Pixel\Desaturate.bls, not in the executable (see the saturation weights).

The derivation is in the doc.

Callers 3

Callees 1

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