Record Class FeatureSet
java.lang.Object
java.lang.Record
com.mojang.renderpearl.backend.vulkan.init.FeatureSet
public record FeatureSet(String name, Set<String> extensions, Set<VulkanFeature> features, FeatureSet.Condition condition)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FeatureSet.ConditionThe field for theconditionrecord component.The field for theextensionsrecord component.private final Set<VulkanFeature> The field for thefeaturesrecord component.private final StringThe field for thenamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFeatureSet(String name, Collection<FeatureSet> others) FeatureSet(String name, Set<String> extensions, Set<VulkanFeature> features) FeatureSet(String name, Set<String> extensions, Set<VulkanFeature> features, FeatureSet.Condition condition) Creates an instance of aFeatureSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallFeaturesSupported(org.lwjgl.vulkan.VkPhysicalDevice vkPhysicalDevice) booleancheckCondition(org.lwjgl.vulkan.VkPhysicalDevice device) composite(FeatureSet other) Returns the value of theconditionrecord component.booleancontains(FeatureSet other) final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionsrecord component.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.booleanisSupported(org.lwjgl.vulkan.VkPhysicalDevice vkPhysicalDevice) booleanisSupported(org.lwjgl.vulkan.VkPhysicalDevice vkPhysicalDevice, Set<String> deviceSupportedExtensions) name()Returns the value of thenamerecord component.supportedExtensions(Set<String> deviceSupportedExtensions) supportedFeatures(org.lwjgl.vulkan.VkPhysicalDevice vkPhysicalDevice) final StringtoString()Returns a string representation of this record class.unsupportedExtensions(Set<String> deviceSupportedExtensions) unsupportedFeatures(org.lwjgl.vulkan.VkPhysicalDevice vkPhysicalDevice)
-
Field Details
-
name
The field for thenamerecord component. -
extensions
-
features
The field for thefeaturesrecord component. -
condition
The field for theconditionrecord component.
-
-
Constructor Details
-
FeatureSet
public FeatureSet(String name, Set<String> extensions, Set<VulkanFeature> features, FeatureSet.Condition condition) Creates an instance of aFeatureSetrecord class.- Parameters:
name- the value for thenamerecord componentextensions- the value for theextensionsrecord componentfeatures- the value for thefeaturesrecord componentcondition- the value for theconditionrecord component
-
FeatureSet
-
FeatureSet
-
-
Method Details
-
composite
-
contains
-
checkCondition
public boolean checkCondition(org.lwjgl.vulkan.VkPhysicalDevice device) throws BackendCreationException - Throws:
BackendCreationException
-
isSupported
public boolean isSupported(org.lwjgl.vulkan.VkPhysicalDevice vkPhysicalDevice) throws BackendCreationException - Throws:
BackendCreationException
-
isSupported
public boolean isSupported(org.lwjgl.vulkan.VkPhysicalDevice vkPhysicalDevice, Set<String> deviceSupportedExtensions) throws BackendCreationException - Throws:
BackendCreationException
-
allFeaturesSupported
public boolean allFeaturesSupported(org.lwjgl.vulkan.VkPhysicalDevice vkPhysicalDevice) -
unsupportedExtensions
-
supportedExtensions
-
unsupportedFeatures
-
supportedFeatures
-
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
extensions
-
features
Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-