Skip to main content

Module config

Module config 

Source
Expand description

The Config uniform every strip shader binds.

Named GpuConfig rather than Config because the crate root already owns a config module of process-wide kill switches (crate::config); this one is the GPU-side uniform buffer’s layout and nothing else.

Field order and size are part of the shader contract — see the module header of super.

Structs§

GpuConfig
The uniform block the strip shaders read once per draw.

Functions§

tex_width_bits
log2 of a resource texture’s width in texels.