From 500ba962d17853bdef7aed49b150dbe3f45692e9 Mon Sep 17 00:00:00 2001 From: rustrover Date: Sat, 9 Mar 2024 15:26:37 +0800 Subject: fix some comments Signed-off-by: rustrover --- wgpu/src/shader/quad.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wgpu/src') diff --git a/wgpu/src/shader/quad.wgsl b/wgpu/src/shader/quad.wgsl index 4de73362..a367d5e6 100644 --- a/wgpu/src/shader/quad.wgsl +++ b/wgpu/src/shader/quad.wgsl @@ -22,7 +22,7 @@ fn rounded_box_sdf(to_center: vec2, size: vec2, radius: f32) -> f32 { return length(max(abs(to_center) - size + vec2(radius, radius), vec2(0.0, 0.0))) - radius; } -// Based on the fragement position and the center of the quad, select one of the 4 radi. +// Based on the fragment position and the center of the quad, select one of the 4 radi. // Order matches CSS border radius attribute: // radi.x = top-left, radi.y = top-right, radi.z = bottom-right, radi.w = bottom-left fn select_border_radius(radi: vec4, position: vec2, center: vec2) -> f32 { -- cgit