Skip to main content

lut_texture

Function lut_texture 

Source
pub fn lut_texture(device: &Device, label: &str) -> Texture
Expand description

Create the shared 256×1 LUT texture a shader-colored scene binds and uploads its baked palette into. Centralized here so the fragment, reaction-diffusion, and attractor scenes stay byte-for-byte consistent (ADR-0021: one source both the GPU and CPU sample). Seed it with write_lut before first use.