Record Class Version
java.lang.Object
java.lang.Record
club.doki7.vulkan.Version
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVersion(int variant, int major, int minor, int patch) Creates an instance of aVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Versiondecode(int version) intencode()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmajor()Returns the value of themajorrecord component.intminor()Returns the value of theminorrecord component.intpatch()Returns the value of thepatchrecord component.final StringtoString()Returns a string representation of this record class.intvariant()Returns the value of thevariantrecord component.
-
Field Details
-
VK_API_VERSION_1_0
-
VK_API_VERSION_1_1
-
VK_API_VERSION_1_2
-
VK_API_VERSION_1_3
-
VK_API_VERSION_1_4
-
-
Constructor Details
-
Version
public Version(@Unsigned int variant, @Unsigned int major, @Unsigned int minor, @Unsigned int patch) Creates an instance of aVersionrecord class.- Parameters:
variant- the value for thevariantrecord componentmajor- the value for themajorrecord componentminor- the value for theminorrecord componentpatch- the value for thepatchrecord component
-
-
Method Details
-
decode
-
encode
-
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. -
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-
major
Returns the value of themajorrecord component.- Returns:
- the value of the
majorrecord component
-
minor
Returns the value of theminorrecord component.- Returns:
- the value of the
minorrecord component
-
patch
Returns the value of thepatchrecord component.- Returns:
- the value of the
patchrecord component
-