Skip to content

Commit

Permalink
Fixed typos: (#131)
Browse files Browse the repository at this point in the history
Various instances of "2st triangle" corrected to "2nd triangle" in vertex shader comments.

Various instances where "1st triangle" is missing in vertex shader comments where "2nd triangle" is present alone.
  • Loading branch information
ARakhamimov authored Jun 27, 2024
1 parent 0a1e97e commit 38a3a8d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions webgpu/lessons/webgpu-compute-shaders-histogram-part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,12 +527,12 @@ and create pipelines for each one.
@builtin(vertex_index) vertexIndex : u32
) -> OurVertexShaderOutput {
let pos = array(
// 1st triangle
vec2f( 0.0, 0.0), // center
vec2f( 1.0, 0.0), // right, center
vec2f( 0.0, 1.0), // center, top
// 2st triangle
// 2nd triangle
vec2f( 0.0, 1.0), // center, top
vec2f( 1.0, 0.0), // right, center
vec2f( 1.0, 1.0), // right, top
Expand Down
4 changes: 2 additions & 2 deletions webgpu/lessons/webgpu-cube-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ Now we need to update `generateMips` to handle multiple sources.
@builtin(vertex_index) vertexIndex : u32
) -> VSOutput {
let pos = array(
// 1st triangle
vec2f( 0.0, 0.0), // center
vec2f( 1.0, 0.0), // right, center
vec2f( 0.0, 1.0), // center, top
// 2st triangle
// 2nd triangle
vec2f( 0.0, 1.0), // center, top
vec2f( 1.0, 0.0), // right, center
vec2f( 1.0, 1.0), // right, top
Expand Down
4 changes: 2 additions & 2 deletions webgpu/lessons/webgpu-importing-textures.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ Here's the code
@builtin(vertex_index) vertexIndex : u32
) -> VSOutput {
let pos = array(
// 1st triangle
vec2f( 0.0, 0.0), // center
vec2f( 1.0, 0.0), // right, center
vec2f( 0.0, 1.0), // center, top
// 2st triangle
// 2nd triangle
vec2f( 0.0, 1.0), // center, top
vec2f( 1.0, 0.0), // right, center
vec2f( 1.0, 1.0), // right, top
Expand Down
4 changes: 2 additions & 2 deletions webgpu/lessons/webgpu-textures-external-video.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ struct Uniforms {
@builtin(vertex_index) vertexIndex : u32
) -> OurVertexShaderOutput {
let pos = array(
// 1st triangle
vec2f( 0.0, 0.0), // center
vec2f( 1.0, 0.0), // right, center
vec2f( 0.0, 1.0), // center, top
// 2st triangle
// 2nd triangle
vec2f( 0.0, 1.0), // center, top
vec2f( 1.0, 0.0), // right, center
vec2f( 1.0, 1.0), // right, top
Expand Down
8 changes: 4 additions & 4 deletions webgpu/lessons/webgpu-textures.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct OurVertexShaderOutput {
+ vec2f( 1.0, 0.0), // right, center
+ vec2f( 0.0, 1.0), // center, top
+
+ // 2st triangle
+ // 2nd triangle
+ vec2f( 0.0, 1.0), // center, top
+ vec2f( 1.0, 0.0), // right, center
+ vec2f( 1.0, 1.0), // right, top
Expand Down Expand Up @@ -501,7 +501,7 @@ struct OurVertexShaderOutput {
vec2f( 1.0, 0.0), // right, center
vec2f( 0.0, 1.0), // center, top
// 2st triangle
// 2nd triangle
vec2f( 0.0, 1.0), // center, top
vec2f( 1.0, 0.0), // right, center
vec2f( 1.0, 1.0), // right, top
Expand Down Expand Up @@ -991,12 +991,12 @@ struct Uniforms {
@builtin(vertex_index) vertexIndex : u32
) -> OurVertexShaderOutput {
let pos = array(

// 1st triangle
vec2f( 0.0, 0.0), // center
vec2f( 1.0, 0.0), // right, center
vec2f( 0.0, 1.0), // center, top

// 2st triangle
// 2nd triangle
vec2f( 0.0, 1.0), // center, top
vec2f( 1.0, 0.0), // right, center
vec2f( 1.0, 1.0), // right, top
Expand Down
4 changes: 2 additions & 2 deletions webgpu/lessons/webgpu-transparency.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,12 +566,12 @@ draw a long plane into the distance.
@builtin(vertex_index) vertexIndex : u32
) -> OurVertexShaderOutput {
let pos = array(
// 1st triangle
vec2f( 0.0, 0.0), // center
vec2f( 1.0, 0.0), // right, center
vec2f( 0.0, 1.0), // center, top
// 2st triangle
// 2nd triangle
vec2f( 0.0, 1.0), // center, top
vec2f( 1.0, 0.0), // right, center
vec2f( 1.0, 1.0), // right, top
Expand Down

0 comments on commit 38a3a8d

Please sign in to comment.