benilla-re systems structs docs

LoadUiPixelShaders

function · ui · primitive

Address
0x76fda0 · 40 bytes, up to 0x76fdc7
Meaning
Loads the interface pixel shaders from a name list into the two-slot table
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 1

Callees 1

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