pub fn apply_layer_to_quad( rect: Rect, layer_bounds: Rect, layer: &GraphicsLayer, ) -> [[f32; 2]; 4]