Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

upload_clut

Function upload_clut 

Source
pub fn upload_clut(clut: Clut, entries: &[Color555])
Expand description

Upload a CLUT – a row of Color555s at clut. The caller picks the width: 16 entries for 4bpp, 256 for 8bpp. Asserts the CLUT fits in VRAM width and the slice length matches.