Record Class VulkanFeature
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vulkan.init.VulkanFeature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thenamerecord component.private final longThe field for theoffsetrecord component.private final VulkanPNextStructThe field for thestructrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionVulkanFeature(VulkanPNextStruct struct, String name, long offset) Creates an instance of aVulkanFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanget(long pNextChain) booleanget(VkPhysicalDeviceFeatures2 features2) final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.longoffset()Returns the value of theoffsetrecord component.private booleanset(long pNextChain, boolean value) voidset(long pNextChain, boolean value, MemoryStack stack) booleanset(VkPhysicalDeviceFeatures2 features2, boolean value) voidset(VkPhysicalDeviceFeatures2 features2, boolean value, MemoryStack stack) struct()Returns the value of thestructrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
struct
The field for thestructrecord component. -
name
The field for thenamerecord component. -
offset
private final long offsetThe field for theoffsetrecord component.
-
-
Constructor Details
-
VulkanFeature
Creates an instance of aVulkanFeaturerecord class.- Parameters:
struct- the value for thestructrecord componentname- the value for thenamerecord componentoffset- the value for theoffsetrecord component
-
-
Method Details
-
get
-
get
public boolean get(long pNextChain) -
set
-
set
private boolean set(long pNextChain, boolean value) -
set
-
set
-
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. -
struct
Returns the value of thestructrecord component.- Returns:
- the value of the
structrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-