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.

dsa.txt 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .. _depth,stencil,&alpha:
  2. Depth, Stencil, & Alpha
  3. =======================
  4. These three states control the depth, stencil, and alpha tests, used to
  5. discard fragments that have passed through the fragment shader.
  6. Traditionally, these three tests have been clumped together in hardware, so
  7. they are all stored in one structure.
  8. During actual execution, the order of operations done on fragments is always:
  9. * Stencil
  10. * Depth
  11. * Alpha
  12. Depth Members
  13. -------------
  14. enabled
  15. Whether the depth test is enabled.
  16. writemask
  17. Whether the depth buffer receives depth writes.
  18. func
  19. The depth test function. One of PIPE_FUNC.
  20. Stencil Members
  21. ---------------
  22. XXX document valuemask, writemask
  23. enabled
  24. Whether the stencil test is enabled. For the second stencil, whether the
  25. two-sided stencil is enabled.
  26. func
  27. The stencil test function. One of PIPE_FUNC.
  28. ref_value
  29. Stencil test reference value; used for certain functions.
  30. fail_op
  31. The operation to carry out if the stencil test fails. One of
  32. PIPE_STENCIL_OP.
  33. zfail_op
  34. The operation to carry out if the stencil test passes but the depth test
  35. fails. One of PIPE_STENCIL_OP.
  36. zpass_op
  37. The operation to carry out if the stencil test and depth test both pass.
  38. One of PIPE_STENCIL_OP.
  39. Alpha Members
  40. -------------
  41. enabled
  42. Whether the alpha test is enabled.
  43. func
  44. The alpha test function. One of PIPE_FUNC.
  45. ref_value
  46. Alpha test reference value; used for certain functions.