microZEUS
The whole stack, hand-drawn.

◄ Wiki / Graphics

texel / texelFetch

A texel is one pixel of a texture; texelFetch grabs exactly that pixel with no smoothing.

A texture is an image made of texels (texture elements). Normal texture reads blend neighbouring texels for smooth results, but texelFetch reads a single texel at exact integer coordinates, bypassing all filtering. That is what you want when a texture holds precise data rather than a smoothable picture.

See also

  • texture samplingReading a smoothly-interpolated colour from a texture image inside a shader.
  • texel bufferA plain memory buffer that a shader can read as if it were a one-dimensional texture.
  • storage imageAn image that shaders can both read from and write to directly, like a 2D array in memory.

Referenced by

storage image · subgroup quad · swizzle · texel buffer · texture sampling