Skip to content

Commit 470f8c4

Browse files
SeiyaCoopergreggman
authored andcommitted
add missing translations and corrected an error
1 parent a1b8d80 commit 470f8c4

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

webgpu/lessons/zh_cn/langinfo.hanson

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@
2727
'reference': '参考',
2828
'lighting': '光照',
2929
'compute-shaders': '计算着色器',
30+
'post-processing': '后处理',
3031
},
3132
}

webgpu/lessons/zh_cn/webgpu-inter-stage-variables.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ select = (a, b, condition) => (condition ? b : a);
289289
290290
- `center`: 插值在像素中心进行 (**默认**)
291291
- `centroid`: 插值是在当前基元中片段所覆盖的所有样本内的某一点上进行的。该值对基元中的所有样本都是相同的。
292-
- `sample`: 每次采样时执行插值。应用此属性时,每次采样都会调用一次片段着色器.
293-
- `first`: Used only with type = `flat`. (default) The value comes from the first vertex of the primitive being drawn
294-
- `either`: Used only with type = `flat`. The value comes from either the first or the last vertex of the primitive being drawn.
292+
- `sample`: 每次采样时执行插值。应用此属性时,每次采样都会调用一次片段着色器
293+
- `first`: 只能在插值类型为 `flat` 时使用。 (**默认**) 绘制时采用图元第一个顶点的值
294+
- `either`: 只能在插值类型为 `flat` 时使用。绘制时或采用图元第一个顶点的值,或采用最后一个顶点的值。
295295
296296
您可以将其指定为属性。例如:
297297

webgpu/lessons/zh_cn/webgpu-uniforms.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ const module = device.createShaderModule({
5353
```
5454

5555
然后,我们声明了一个类型为该结构体的 uniform 变量。变量名为 `ourStruct`,类型为 `OurStruct`
56-
Then we declared a uniform variable with a type of that struct.
57-
The variable is `ourStruct` and its type is `OurStruct`.
5856

5957
```wsgl
6058
@group(0) @binding(0) var<uniform> ourStruct: OurStruct;

0 commit comments

Comments
 (0)