Package org.boxutil.util
Record Class ShaderUtil.BindingLocationStruct
java.lang.Object
java.lang.Record
org.boxutil.util.ShaderUtil.BindingLocationStruct
- Record Components:
target-ShaderUtil.BIND_VERTEX_ATTRIBfor vertex attrib location, OpenGL 2.0 required;ShaderUtil.BIND_FRAGMENT_OUTPUTfor fragment output/location, OpenGL 3.0 required.location- vertex attrib index or color attachment index.name- the field name that what them in shader source is.
- Enclosing class:
- ShaderUtil
-
Constructor Summary
ConstructorsConstructorDescriptionBindingLocationStruct(byte target, int location, String name) Creates an instance of aBindingLocationStructrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlocation()Returns the value of thelocationrecord component.name()Returns the value of thenamerecord component.bytetarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
target
public byte target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
location
public int location()Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-