Record Class VertexAttribSpec
java.lang.Object
java.lang.Record
dev.pfaff.altargui.shader.VertexAttribSpec
public record VertexAttribSpec(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, @Nullable MemoryLayout customLayout)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVertexAttribSpec
(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width) VertexAttribSpec
(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, @Nullable MemoryLayout customLayout) Creates an instance of aVertexAttribSpec
record class.VertexAttribSpec
(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, int width) -
Method Summary
Modifier and TypeMethodDescription@Nullable MemoryLayout
Returns the value of thecustomLayout
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.name()
Returns the value of thename
record component.boolean
Returns the value of thenormalized
record component.final String
toString()
Returns a string representation of this record class.dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType
type()
Returns the value of thetype
record component.int
width()
Returns the value of thewidth
record component.withByteOrder
(ByteOrder byteOrder) withCustomLayout
(MemoryLayout layout)
-
Field Details
-
PADDING_BYTE
-
-
Constructor Details
-
VertexAttribSpec
public VertexAttribSpec(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width, @Nullable MemoryLayout customLayout) Creates an instance of aVertexAttribSpec
record class.- Parameters:
name
- the value for thename
record componenttype
- the value for thetype
record componentnormalized
- the value for thenormalized
record componentwidth
- the value for thewidth
record componentcustomLayout
- the value for thecustomLayout
record component
-
VertexAttribSpec
public VertexAttribSpec(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, boolean normalized, int width) -
VertexAttribSpec
public VertexAttribSpec(String name, dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type, int width)
-
-
Method Details
-
withNormalized
-
withCustomLayout
-
withByteOrder
-
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 '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
type
public dev.pfaff.glass.opengl.enums.IGLVertexAttribPointerType type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
normalized
public boolean normalized()Returns the value of thenormalized
record component.- Returns:
- the value of the
normalized
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
customLayout
Returns the value of thecustomLayout
record component.- Returns:
- the value of the
customLayout
record component
-