Record Class WgpuBindings.DepthStencilAttachment
java.lang.Object
java.lang.Record
dev.engine.graphics.webgpu.WgpuBindings.DepthStencilAttachment
- Enclosing interface:
WgpuBindings
public static record WgpuBindings.DepthStencilAttachment(long textureView, float depthClearValue, int stencilClearValue)
extends Record
Describes a depth/stencil attachment for a render pass.
-
Constructor Summary
ConstructorsConstructorDescriptionDepthStencilAttachment(long textureView, float depthClearValue, int stencilClearValue) Creates an instance of aDepthStencilAttachmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thedepthClearValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thestencilClearValuerecord component.longReturns the value of thetextureViewrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DepthStencilAttachment
public DepthStencilAttachment(long textureView, float depthClearValue, int stencilClearValue) Creates an instance of aDepthStencilAttachmentrecord class.- Parameters:
textureView- the value for thetextureViewrecord componentdepthClearValue- the value for thedepthClearValuerecord componentstencilClearValue- the value for thestencilClearValuerecord 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. -
textureView
public long textureView()Returns the value of thetextureViewrecord component.- Returns:
- the value of the
textureViewrecord component
-
depthClearValue
public float depthClearValue()Returns the value of thedepthClearValuerecord component.- Returns:
- the value of the
depthClearValuerecord component
-
stencilClearValue
public int stencilClearValue()Returns the value of thestencilClearValuerecord component.- Returns:
- the value of the
stencilClearValuerecord component
-