Record Class VertexComponentSpec.Padding
java.lang.Object
java.lang.Record
dev.pfaff.altargui.shader.VertexComponentSpec.Padding
- All Implemented Interfaces:
VertexComponentSpec
- Enclosing interface:
VertexComponentSpec
public static record VertexComponentSpec.Padding(int byteSize)
extends Record
implements VertexComponentSpec
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.pfaff.altargui.shader.VertexComponentSpec
VertexComponentSpec.Attrib, VertexComponentSpec.Padding
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
byteSize()
Returns the value of thebyteSize
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.layout()
name()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Padding
public Padding(int byteSize) Creates an instance of aPadding
record class.- Parameters:
byteSize
- the value for thebyteSize
record component
-
-
Method Details
-
name
- Specified by:
name
in interfaceVertexComponentSpec
-
layout
- Specified by:
layout
in interfaceVertexComponentSpec
-
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 thecompare
method from their corresponding wrapper classes. -
byteSize
public int byteSize()Returns the value of thebyteSize
record component.- Returns:
- the value of the
byteSize
record component
-