Record Class WgpuBindings.VertexAttributeDesc
java.lang.Object
java.lang.Record
dev.engine.graphics.webgpu.WgpuBindings.VertexAttributeDesc
- Enclosing interface:
WgpuBindings
public static record WgpuBindings.VertexAttributeDesc(int format, int offset, int shaderLocation)
extends Record
Describes a vertex attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionVertexAttributeDesc(int format, int offset, int shaderLocation) Creates an instance of aVertexAttributeDescrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intformat()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.intoffset()Returns the value of theoffsetrecord component.intReturns the value of theshaderLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VertexAttributeDesc
public VertexAttributeDesc(int format, int offset, int shaderLocation) Creates an instance of aVertexAttributeDescrecord class.- Parameters:
format- the value for theformatrecord componentoffset- the value for theoffsetrecord componentshaderLocation- the value for theshaderLocationrecord 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. -
format
public int format()Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
shaderLocation
public int shaderLocation()Returns the value of theshaderLocationrecord component.- Returns:
- the value of the
shaderLocationrecord component
-