Skip to content

Commit

Permalink
small edit
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Nov 1, 2023
1 parent ec8d7cb commit 0735ca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webgpu/lessons/webgpu-fundamentals.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ It's hard to decide where to start. At certain level, WebGPU is a very simple
system. All it does is run 3 types of functions on the GPU. Vertex Shaders,
Fragment Shaders, Compute Shaders.

A Vertex Shader computes vertices. The shader returns vertex positions. For every group of 3 vertices, it returns a triangle drawn between those 3 positions [^primitives]
A Vertex Shader computes vertices. The shader returns vertex positions. For every group of 3 vertices the vertex shader function returns a triangle is drawn between those 3 positions [^primitives]

[^primitives]: There are actually 5 modes.

Expand Down Expand Up @@ -121,7 +121,7 @@ to change any of that stuff you create a new resource and destroy the old one.

Some of the state is setup by creating and then executing command buffers.
Command buffers are literally what their name suggests. They are a buffer of
commands. You create encoders. The encoders encode commands into the command
commands. You create command encoders. The encoders encode commands into the command
buffer. You then *finish* the encoder and it gives you the command buffer it
created. You can then *submit* that command buffer to have WebGPU execute the
commands.
Expand Down

0 comments on commit 0735ca1

Please sign in to comment.