Record Class StencilPerFaceTest
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.stencil.StencilPerFaceTest
- Record Components:
fail- The operation to apply to the stencil buffer when the fragment fails the stencil test.depthFail- The operation to apply to the stencil buffer when the fragment fails the depth test.pass- The operation to apply to the stencil buffer when the fragment passes both the stencil and depth test.compare- The comparison operator to use for determining whether the fragment passes the stencil test.
public record StencilPerFaceTest(StencilOperation fail, StencilOperation depthFail, StencilOperation pass, StencilFunction compare)
extends Record
Describes the stencil test and writing state for the front or back face.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StencilFunctionThe field for thecomparerecord component.private final StencilOperationThe field for thedepthFailrecord component.private final StencilOperationThe field for thefailrecord component.private final StencilOperationThe field for thepassrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStencilPerFaceTest(StencilOperation fail, StencilOperation depthFail, StencilOperation pass, StencilFunction compare) Creates an instance of aStencilPerFaceTestrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncompare()Returns the value of thecomparerecord component.Returns the value of thedepthFailrecord component.final booleanIndicates whether some other object is "equal to" this one.fail()Returns the value of thefailrecord component.final inthashCode()Returns a hash code value for this object.pass()Returns the value of thepassrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
StencilPerFaceTest
public StencilPerFaceTest(StencilOperation fail, StencilOperation depthFail, StencilOperation pass, StencilFunction compare) Creates an instance of aStencilPerFaceTestrecord class.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
fail
-
depthFail
-
pass
-
compare
-