up | tags | aliases | date | |||||
---|---|---|---|---|---|---|---|---|
|
|
2023-11-18 |
[!NOTE] this explanation is based on the [[Rust]] struct
RenderPipelineDescriptor
.
A series of steps that a graphics [[API]] (such as [[wgpu]]) uses to convert [[vertices]] into an on-screen image.
High-level steps:
- Vertex Fetching: Vertices are loaded from buffers.
- Vertex Shading: Vertices are processed by a vertex [[vertex shader]].
- Primitive Assembly: Vertices are assembled into geometric [[Primitive State|primitive]] (such as triangles).
- Rasterization: The [[Primitive State|primitives]] are converted into pixels.
- Fragment Shading: Pixels are processed by a [[fragment shader]] to produce colors.
- Blending and Output: Colors are blended in the [[framebuffer]].