Record Class Uniform.Sampler
java.lang.Object
java.lang.Record
com.mojang.renderpearl.backend.opengl.Uniform.Sampler
- All Implemented Interfaces:
Uniform, UncheckedAutoCloseable, AutoCloseable
- Enclosing interface:
Uniform
-
Nested Class Summary
Nested classes/interfaces inherited from interface Uniform
Uniform.Sampler, Uniform.Ubo, Uniform.Utb -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thesamplerIndexrecord component. -
Constructor Summary
Constructors -
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.intReturns the value of thesamplerIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
samplerIndex
private final int samplerIndexThe field for thesamplerIndexrecord component.
-
-
Constructor Details
-
Sampler
public Sampler(int samplerIndex) Creates an instance of aSamplerrecord class.- Parameters:
samplerIndex- the value for thesamplerIndexrecord 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. -
samplerIndex
public int samplerIndex()Returns the value of thesamplerIndexrecord component.- Returns:
- the value of the
samplerIndexrecord component
-