Function rootvg_core::math::screen_to_clip_scale
source · pub fn screen_to_clip_scale(
screen_size: PhysicalSizeI32,
scale_factor: ScaleFactor
) -> [f32; 2]
Expand description
Returns a scaling vector that can be used to convert screen coordinates to clip coordinates in shaders.