Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sampler.rst 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .. _sampler:
  2. Sampler
  3. =======
  4. Texture units have many options for selecting texels from loaded textures;
  5. this state controls an individual texture unit's texel-sampling settings.
  6. Texture coordinates are always treated as four-dimensional, and referred to
  7. with the traditional (S, T, R, Q) notation.
  8. Members
  9. -------
  10. wrap_s
  11. How to wrap the S coordinate. One of PIPE_TEX_WRAP.
  12. wrap_t
  13. How to wrap the T coordinate. One of PIPE_TEX_WRAP.
  14. wrap_r
  15. How to wrap the R coordinate. One of PIPE_TEX_WRAP.
  16. min_img_filter
  17. The filter to use when minifying texels. One of PIPE_TEX_FILTER.
  18. min_mip_filter
  19. The filter to use when minifying mipmapped textures. One of
  20. PIPE_TEX_FILTER.
  21. mag_img_filter
  22. The filter to use when magnifying texels. One of PIPE_TEX_FILTER.
  23. compare_mode
  24. If set to PIPE_TEX_COMPARE_R_TO_TEXTURE, texture output is computed
  25. according to compare_func, using r coord and the texture value as operands.
  26. If set to PIPE_TEX_COMPARE_NONE, no comparison calculation is performed.
  27. compare_func
  28. How the comparison is computed. One of PIPE_FUNC.
  29. normalized_coords
  30. Whether the texture coordinates are normalized. If normalized, they will
  31. always be in [0, 1]. If not, they will be in the range of each dimension
  32. of the loaded texture.
  33. lod_bias
  34. The bias to apply to the level of detail.
  35. min_lod
  36. Minimum level of detail, used to clamp LoD after bias.
  37. max_lod
  38. Maximum level of detail, used to clamp LoD after bias.
  39. border_color
  40. RGBA color used for out-of-bounds coordinates.
  41. max_anisotropy
  42. Maximum filtering to apply anisotropically to textures. Setting this to
  43. 1.0 effectively disables anisotropic filtering.