Record Class SpvVariable
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vulkan.glsl.SpvVariable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thelocationOffsetrecord component.private final StringThe field for thenamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSpvVariable(String name, int locationOffset) Creates an instance of aSpvVariablerecord 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.intReturns the value of thelocationOffsetrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
locationOffset
private final int locationOffsetThe field for thelocationOffsetrecord component.
-
-
Constructor Details
-
SpvVariable
SpvVariable(String name, int locationOffset) Creates an instance of aSpvVariablerecord class.- Parameters:
name- the value for thenamerecord componentlocationOffset- the value for thelocationOffsetrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
locationOffset
public int locationOffset()Returns the value of thelocationOffsetrecord component.- Returns:
- the value of the
locationOffsetrecord component
-