Rasterization — what it is, stages and operating principle

Author: IT Sectr Published: 2026-06-11 Reading time: 10 min

Rasterization is the process of converting a vector description of three-dimensional primitives (triangles, lines, points) into a set of pixels (fragments) for display on a screen. According to Khronos Group, 2025, rasterization is an automatic (non-programmable) stage of the graphics pipeline located between the Vertex Shader and Fragment Shader. Rasterization determines which screen pixels belong to which triangle and computes interpolated attributes for each fragment.

Key Takeaways

  • Rasterization — conversion of vector primitives into a raster image (pixels).
  • Scanline conversion — the basic algorithm that determines pixel coverage by a triangle.
  • Attribute interpolation — computing color, texture coordinates and normals for each fragment.
  • MSAA — multisampling, smoothing jagged edges (aliasing) during rasterization.
  • Performance of rasterization depends on the number of triangles and screen resolution.

What Is Rasterization?

Rasterization is a stage of the graphics pipeline that converts geometric primitives (triangles, lines) into a set of fragments for further processing by the Fragment Shader. The input consists of triangle vertices in screen coordinates and their attributes (color, normals, UV). The output is a set of fragments with interpolated attributes.

Unlike programmable shaders (Vertex and Fragment Shader), rasterization is a fixed (non-programmable) stage. The developer cannot change the rasterization algorithm but can control its parameters: culling mode, line width, polygon offset, and multisampling.

The Role of Rasterization in Real-Time Graphics

Virtually all modern real-time graphics — games, UI, AR/VR — use rasterization. It is the most performant rendering method, capable of processing millions of triangles per frame at 60 FPS. GPU rasterizers are optimized for parallel processing of thousands of triangles simultaneously through specialized ROP (Render Output Units) blocks.

How Does Rasterization Work?

Triangle rasterization begins after the Vertex Shader has transformed the vertices into screen coordinates. The GPU takes the three vertices of a triangle and determines which screen pixels lie inside that triangle.

Stages of Triangle Rasterization

The process includes three sequential steps: determining the triangle’s bounding box in pixels — checking each pixel inside the bounding box for triangle membership (edge function) — computing interpolated attributes (barycentric coordinates) for each covered pixel. Edge function is a linear equation that determines which side of the triangle edge a point lies on.

StageDescriptionResult
ClippingClipping triangles outside the viewport boundariesVisible primitives
Viewport transformTransformation into screen coordinatesPixel coordinates
Triangle setupComputing edge functions and bounding boxRasterization parameters
Fragment generationCoverage testing and interpolationFragments + attributes

Rasterization Algorithms

Rasterization can be implemented using various algorithms, each with its own trade-offs between performance and quality. Modern GPUs use a combination of several approaches.

Scanline Algorithm

The classic rasterization algorithm developed for early GPUs. The triangle is processed line by line (scanline): for each screen line, the entry and exit points of the triangle are determined, and all pixels between them are filled. Scanline conversion is efficient for large triangles but requires complex logic for triangles of arbitrary shape.

Half-Space (Edge Function) Method

Modern GPUs use the half-space rasterization method: for each side of the triangle, an edge function is computed — a linear equation that is positive on one side and negative on the other. A pixel belongs to the triangle if all three edge functions are positive. Half-space rasterization is easily parallelizable and well-suited for SIMD GPU architectures.

Tile-Based Rasterization (TBR)

Mobile GPUs (Qualcomm Adreno, ARM Mali) use Tile-Based Rendering (TBR). The screen is divided into small tiles (16x16 or 32x32 pixels), and rasterization is performed for each tile separately. This minimizes memory accesses by storing the framebuffer in fast local memory (tile memory). TBR reduces power consumption, which is critical for mobile devices.

Rasterization vs Ray Tracing

Rasterization and ray tracing are two fundamentally different approaches to 3D graphics rendering. Rasterization dominates real-time applications, while ray tracing is used in offline rendering and is gradually entering real-time (on RTX-compatible GPUs).

ParameterRasterizationRay Tracing
PrincipleTriangle → fragmentsRay → scene intersection
SpeedVery fast (millions of triangles/frame)Slow (thousands of rays/frame)
QualityRequires additional techniques (shadows, reflections)Physically correct shadows and reflections
Mobile GPUsStandard methodLimited support (A17 Pro, Snapdragon Gen 3)
Power consumptionLowHigh

MSAA and Anti-Aliasing in Rasterization

Rasterization introduces the problem of aliasing — jagged edges (jaggies) at triangle boundaries. This occurs because a pixel is discrete and cannot be partially covered by a triangle. Multisampling (MSAA) is used to combat aliasing.

How MSAA Works

MSAA (Multisample Anti-Aliasing) performs rasterization at an increased sampling rate (2x, 4x, 8x). Instead of one sample per pixel, multiple sub-samples are used, each tested for triangle coverage. MSAA 4x processes 4 sub-samples per pixel, providing noticeable edge smoothing without fully increasing the rendering resolution.

FXAA and Other Post-Process Methods

Unlike MSAA, post-process anti-aliasing methods (FXAA, SMAA, TAA) work after rasterization by analyzing the final image. FXAA (Fast Approximate Anti-Aliasing) detects image edges and applies blur for smoothing, working significantly faster than MSAA but with less quality.

Rasterization on GPU and Optimization

Rasterization on modern GPUs is performed by specialized hardware blocks — ROP (Render Output Units). The number of ROPs directly affects the fill rate — the number of pixels the GPU can process per second.

Rasterization Performance Factors

  • Triangle count — the number of triangles per frame. Each triangle requires overhead for setup and edge testing.
  • Fill rate — the number of pixels processed by ROP blocks per second. Depends on GPU clock frequency and the number of ROPs.
  • Overdraw — repeated rasterization of the same pixel due to triangle overlap. Optimized by sorting objects by depth.

Rasterization Optimization for Mobile GPUs

For mobile GPUs (Tile-Based Rendering), critical factors include: minimizing overdraw through early-Z rejection, using back-face culling to remove invisible triangles, and occlusion culling to reject triangles fully covered by other objects.

Frequently Asked Questions

What is rasterization in simple terms?

Rasterization is the process of turning triangles into pixels on the screen. The GPU takes a three-dimensional triangle, determines which screen pixels it covers, and passes them to the Fragment Shader for coloring.

How is rasterization different from ray tracing?

Rasterization projects triangles onto the screen and determines pixel coverage (very fast). Ray tracing casts rays from the camera and checks intersection with geometry (physically more accurate but significantly slower).

Why is anti-aliasing needed in rasterization?

During rasterization, a pixel either fully belongs to a triangle or does not — hence jagged edges (aliasing). MSAA smooths edges using multiple sub-samples per pixel, while FXAA applies a filter to the final image.

Can the rasterization stage be programmed?

No, rasterization is a fixed stage of the graphics pipeline. The developer cannot change the algorithm but can control settings: culling, polygon offset, rasterization mode (points, lines, triangles), and MSAA parameters.

Why do mobile GPUs use Tile-Based Rendering?

Tile-Based Rendering (TBR) divides the screen into tiles and processes them in fast local memory rather than global VRAM. This radically reduces power consumption and bandwidth, which is critical for battery-powered mobile devices.

Summary

  • Rasterization — conversion of vector triangles into raster fragments for display on screen.
  • Half-space method — the main rasterization algorithm in modern GPUs.
  • Tile-Based Rendering — rasterization architecture used in mobile GPUs (Adreno, Mali).
  • Aliasing — the problem of jagged edges, solved through MSAA, FXAA or TAA.
  • Fill rate — key rasterization performance parameter depending on the number of ROP blocks.
  • Overdraw — repeated rasterization of pixels, optimized through early-Z and occlusion culling.
  • Ray Tracing — an alternative method providing physically correct rendering at the cost of performance.

We will develop a mobile application turnkey

IT Sectr creates iOS and Android applications for startups and businesses since 2017. We will advise you and propose the best solution.

Discuss the project

Read also