Skip to main content

SIZE_UNIFORM

Constant SIZE_UNIFORM 

Source
pub const SIZE_UNIFORM: &str = "tex_size";
Expand description

The texture’s size in physical pixels.

Ours, not Smithay’s. A pixel program is given a size uniform; a texture program is not – the built-in texture.frag declares only tex, alpha and v_coords. So a texture shader that needs to measure in pixels has to be told how big it is.