Record Class BuiltInstanceLayout
java.lang.Object
java.lang.Record
dev.pfaff.altargui.shader.BuiltInstanceLayout
public record BuiltInstanceLayout(int stride, int divisor, List<VertexAttrib> attribs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltInstanceLayout
(int stride, int divisor, List<VertexAttrib> attribs) Creates an instance of aBuiltInstanceLayout
record class. -
Method Summary
Modifier and TypeMethodDescriptionattribs()
Returns the value of theattribs
record component.void
Binds the attributes to whatever buffer is currently active.void
bindAttribsWithOffset
(int offset) int
divisor()
Returns the value of thedivisor
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.int
stride()
Returns the value of thestride
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BuiltInstanceLayout
Creates an instance of aBuiltInstanceLayout
record class.- Parameters:
stride
- the value for thestride
record componentdivisor
- the value for thedivisor
record componentattribs
- the value for theattribs
record component
-
-
Method Details
-
bindAttribs
public void bindAttribs()Binds the attributes to whatever buffer is currently active. -
bindAttribsWithOffset
public void bindAttribsWithOffset(int offset) - Parameters:
offset
- the offset of the first element within the buffer.
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
stride
public int stride()Returns the value of thestride
record component.- Returns:
- the value of the
stride
record component
-
divisor
public int divisor()Returns the value of thedivisor
record component.- Returns:
- the value of the
divisor
record component
-
attribs
Returns the value of theattribs
record component.- Returns:
- the value of the
attribs
record component
-