Record Class SpvUniformBuffer
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vulkan.glsl.SpvUniformBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebindingOffsetrecord component.private final StringThe field for thenamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSpvUniformBuffer(String name, int bindingOffset) Creates an instance of aSpvUniformBufferrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebindingOffsetrecord 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.
-
-
Constructor Details
-
SpvUniformBuffer
SpvUniformBuffer(String name, int bindingOffset) Creates an instance of aSpvUniformBufferrecord class.- Parameters:
name- the value for thenamerecord componentbindingOffset- the value for thebindingOffsetrecord 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
-