Record Class Uniform.Sampler
java.lang.Object
java.lang.Record
com.mojang.blaze3d.opengl.Uniform.Sampler
- All Implemented Interfaces:
Uniform, 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 thelocationrecord component.private final intThe field for thesamplerIndexrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSampler(int location, int samplerIndex) Creates an instance of aSamplerrecord 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.intReturns the value of thesamplerIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
location
private final int locationThe field for thelocationrecord component. -
samplerIndex
private final int samplerIndexThe field for thesamplerIndexrecord component.
-
-
Constructor Details
-
Sampler
public Sampler(int location, int samplerIndex) Creates an instance of aSamplerrecord class.- Parameters:
location- the value for thelocationrecord componentsamplerIndex- 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. -
location
public int location()Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
samplerIndex
public int samplerIndex()Returns the value of thesamplerIndexrecord component.- Returns:
- the value of the
samplerIndexrecord component
-