Record Class WgpuBindings.StencilFaceState
java.lang.Object
java.lang.Record
dev.engine.graphics.webgpu.WgpuBindings.StencilFaceState
- Enclosing interface:
WgpuBindings
public static record WgpuBindings.StencilFaceState(int compare, int passOp, int failOp, int depthFailOp)
extends Record
Describes stencil face state.
-
Constructor Summary
ConstructorsConstructorDescriptionStencilFaceState(int compare, int passOp, int failOp, int depthFailOp) Creates an instance of aStencilFaceStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompare()Returns the value of thecomparerecord component.intReturns the value of thedepthFailOprecord component.final booleanIndicates whether some other object is "equal to" this one.intfailOp()Returns the value of thefailOprecord component.final inthashCode()Returns a hash code value for this object.intpassOp()Returns the value of thepassOprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StencilFaceState
public StencilFaceState(int compare, int passOp, int failOp, int depthFailOp) Creates an instance of aStencilFaceStaterecord class.- Parameters:
compare- the value for thecomparerecord componentpassOp- the value for thepassOprecord componentfailOp- the value for thefailOprecord componentdepthFailOp- the value for thedepthFailOprecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
compare
public int compare()Returns the value of thecomparerecord component.- Returns:
- the value of the
comparerecord component
-
passOp
public int passOp()Returns the value of thepassOprecord component.- Returns:
- the value of the
passOprecord component
-
failOp
public int failOp()Returns the value of thefailOprecord component.- Returns:
- the value of the
failOprecord component
-
depthFailOp
public int depthFailOp()Returns the value of thedepthFailOprecord component.- Returns:
- the value of the
depthFailOprecord component
-