A system, method and computer program product are provided for two-sided
stencil testing during graphics processing. Initially, primitives are
received to be processed in a graphics processing pipeline. In use, it is
then determined whether the graphics processing pipeline is operating with
same-sided stencil testing enabled. If same-sided stencil testing is not
enabled, the primitives are passed without same-sided stencil testing and
two-sided stencil testing. If, on other hand, same-sided stencil testing
is enabled, it is determined whether the graphics processing pipeline is
operating with two-sided stencil testing enabled. If the two-sided stencil
testing is enabled and the same-sided stencil testing is enabled,
two-sided stencil testing is performed on the primitives. If, on the other
hand, the two-sided stencil testing is disabled and the same-sided stencil
testing is enabled, same-sided stencil testing is performed on the
primitives.
Un produit de système, de méthode et de programme machine sont donnés pour le pochoir recto-verso examinant pendant le traitement de graphiques. Au commencement, les primitifs sont à traiter dans reçu des graphiques traitant la canalisation. En service, on le détermine alors si les graphiques traitant la canalisation fonctionne avec l'essai même-dégrossi de pochoir permis. Si l'essai même-dégrossi de pochoir n'est pas permis, les primitifs sont passés sans pochoir même-dégrossi examinant et examinant recto-verso de pochoir. Si, sur l'autre main, l'essai même-dégrossi de pochoir est permis, on le détermine si les graphiques traitant la canalisation fonctionne avec l'essai recto-verso de pochoir permis. Si l'essai recto-verso de pochoir est permis et l'essai même-dégrossi de pochoir est permis, l'essai recto-verso de pochoir est réalisé sur les primitifs. Si, d'autre part, l'essai recto-verso de pochoir est handicapé et l'essai même-dégrossi de pochoir est permis, l'essai même-dégrossi de pochoir est réalisé sur les primitifs.