Record Class WgpuBindings.ColorAttachment
java.lang.Object
java.lang.Record
dev.engine.graphics.webgpu.WgpuBindings.ColorAttachment
- Enclosing interface:
WgpuBindings
public static record WgpuBindings.ColorAttachment(long textureView, float clearR, float clearG, float clearB, float clearA)
extends Record
Describes a color attachment for a render pass.
-
Constructor Summary
ConstructorsConstructorDescriptionColorAttachment(long textureView, float clearR, float clearG, float clearB, float clearA) Creates an instance of aColorAttachmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatclearA()Returns the value of theclearArecord component.floatclearB()Returns the value of theclearBrecord component.floatclearG()Returns the value of theclearGrecord component.floatclearR()Returns the value of theclearRrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thetextureViewrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ColorAttachment
public ColorAttachment(long textureView, float clearR, float clearG, float clearB, float clearA) Creates an instance of aColorAttachmentrecord class.- Parameters:
textureView- the value for thetextureViewrecord componentclearR- the value for theclearRrecord componentclearG- the value for theclearGrecord componentclearB- the value for theclearBrecord componentclearA- the value for theclearArecord 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
-
clearR
public float clearR()Returns the value of theclearRrecord component.- Returns:
- the value of the
clearRrecord component
-
clearG
public float clearG()Returns the value of theclearGrecord component.- Returns:
- the value of the
clearGrecord component
-
clearB
public float clearB()Returns the value of theclearBrecord component.- Returns:
- the value of the
clearBrecord component
-
clearA
public float clearA()Returns the value of theclearArecord component.- Returns:
- the value of the
clearArecord component
-