Record Class DepthStencilState
java.lang.Object
java.lang.Record
com.mojang.blaze3d.pipeline.DepthStencilState
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DepthStencilStateprivate final floatThe field for thedepthBiasConstantrecord component.private final floatThe field for thedepthBiasScaleFactorrecord component.private final CompareOpThe field for thedepthTestrecord component.private final booleanThe field for thewriteDepthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDepthStencilState(CompareOp depthTest, boolean depthWrite) DepthStencilState(CompareOp depthTest, boolean writeDepth, float depthBiasScaleFactor, float depthBiasConstant) Creates an instance of aDepthStencilStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thedepthBiasConstantrecord component.floatReturns the value of thedepthBiasScaleFactorrecord component.Returns the value of thedepthTestrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewriteDepthrecord component.
-
Field Details
-
depthTest
The field for thedepthTestrecord component. -
writeDepth
private final boolean writeDepthThe field for thewriteDepthrecord component. -
depthBiasScaleFactor
private final float depthBiasScaleFactorThe field for thedepthBiasScaleFactorrecord component. -
depthBiasConstant
private final float depthBiasConstantThe field for thedepthBiasConstantrecord component. -
DEFAULT
-
-
Constructor Details
-
DepthStencilState
-
DepthStencilState
public DepthStencilState(CompareOp depthTest, boolean writeDepth, float depthBiasScaleFactor, float depthBiasConstant) Creates an instance of aDepthStencilStaterecord class.- Parameters:
depthTest- the value for thedepthTestrecord componentwriteDepth- the value for thewriteDepthrecord componentdepthBiasScaleFactor- the value for thedepthBiasScaleFactorrecord componentdepthBiasConstant- the value for thedepthBiasConstantrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
depthTest
Returns the value of thedepthTestrecord component.- Returns:
- the value of the
depthTestrecord component
-
writeDepth
public boolean writeDepth()Returns the value of thewriteDepthrecord component.- Returns:
- the value of the
writeDepthrecord component
-
depthBiasScaleFactor
public float depthBiasScaleFactor()Returns the value of thedepthBiasScaleFactorrecord component.- Returns:
- the value of the
depthBiasScaleFactorrecord component
-
depthBiasConstant
public float depthBiasConstant()Returns the value of thedepthBiasConstantrecord component.- Returns:
- the value of the
depthBiasConstantrecord component
-