Record Class SpvSampler
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vulkan.glsl.SpvSampler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebindingOffsetrecord component.private final intThe field for thedimensionsrecord component.private final StringThe field for thenamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSpvSampler(String name, int bindingOffset, int dimensions) Creates an instance of aSpvSamplerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebindingOffsetrecord component.intReturns the value of thedimensionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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. -
bindingOffset
private final int bindingOffsetThe field for thebindingOffsetrecord component. -
dimensions
private final int dimensionsThe field for thedimensionsrecord component.
-
-
Constructor Details
-
SpvSampler
SpvSampler(String name, int bindingOffset, int dimensions) Creates an instance of aSpvSamplerrecord class.- Parameters:
name- the value for thenamerecord componentbindingOffset- the value for thebindingOffsetrecord componentdimensions- the value for thedimensionsrecord 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
-
bindingOffset
public int bindingOffset()Returns the value of thebindingOffsetrecord component.- Returns:
- the value of the
bindingOffsetrecord component
-
dimensions
public int dimensions()Returns the value of thedimensionsrecord component.- Returns:
- the value of the
dimensionsrecord component
-