summaryrefslogtreecommitdiffstats
path: root/wgpu/src/shader
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-03-09 11:59:33 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-09 11:59:33 +0100
commite236bd695aae4f07518479983c3da2b214f0b361 (patch)
tree52f7177fb7a31494a0d021c5f1c238145577a7c9 /wgpu/src/shader
parenta341e39df63e9c4860eb796bf5c4b6a9b41116a2 (diff)
parent500ba962d17853bdef7aed49b150dbe3f45692e9 (diff)
downloadiced-e236bd695aae4f07518479983c3da2b214f0b361.tar.gz
iced-e236bd695aae4f07518479983c3da2b214f0b361.tar.bz2
iced-e236bd695aae4f07518479983c3da2b214f0b361.zip
Merge pull request #2317 from rustrover/master
fix some comments
Diffstat (limited to 'wgpu/src/shader')
-rw-r--r--wgpu/src/shader/quad.wgsl2
1 files changed, 1 insertions, 1 deletions
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<f32>, size: vec2<f32>, radius: f32) -> f32 {
return length(max(abs(to_center) - size + vec2<f32>(radius, radius), vec2<f32>(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<f32>, position: vec2<f32>, center: vec2<f32>) -> f32 {