Record Class DeviceFeatures
java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.DeviceFeatures
public record DeviceFeatures(boolean shaderDrawParameters, boolean multiDrawDirectInterleaved, boolean multiDrawDirectSeparate, boolean multiDrawIndirect, boolean drawIndirect, boolean nonZeroFirstInstance, boolean persistentMapping)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thedrawIndirectrecord component.private final booleanThe field for themultiDrawDirectInterleavedrecord component.private final booleanThe field for themultiDrawDirectSeparaterecord component.private final booleanThe field for themultiDrawIndirectrecord component.private final booleanThe field for thenonZeroFirstInstancerecord component.private final booleanThe field for thepersistentMappingrecord component.private final booleanThe field for theshaderDrawParametersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDeviceFeatures(boolean shaderDrawParameters, boolean multiDrawDirectInterleaved, boolean multiDrawDirectSeparate, boolean multiDrawIndirect, boolean drawIndirect, boolean nonZeroFirstInstance, boolean persistentMapping) Creates an instance of aDeviceFeaturesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedrawIndirectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themultiDrawDirectInterleavedrecord component.booleanReturns the value of themultiDrawDirectSeparaterecord component.booleanReturns the value of themultiDrawIndirectrecord component.booleanReturns the value of thenonZeroFirstInstancerecord component.booleanReturns the value of thepersistentMappingrecord component.booleanReturns the value of theshaderDrawParametersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
shaderDrawParameters
private final boolean shaderDrawParametersThe field for theshaderDrawParametersrecord component. -
multiDrawDirectInterleaved
private final boolean multiDrawDirectInterleavedThe field for themultiDrawDirectInterleavedrecord component. -
multiDrawDirectSeparate
private final boolean multiDrawDirectSeparateThe field for themultiDrawDirectSeparaterecord component. -
multiDrawIndirect
private final boolean multiDrawIndirectThe field for themultiDrawIndirectrecord component. -
drawIndirect
private final boolean drawIndirectThe field for thedrawIndirectrecord component. -
nonZeroFirstInstance
private final boolean nonZeroFirstInstanceThe field for thenonZeroFirstInstancerecord component. -
persistentMapping
private final boolean persistentMappingThe field for thepersistentMappingrecord component.
-
-
Constructor Details
-
DeviceFeatures
public DeviceFeatures(boolean shaderDrawParameters, boolean multiDrawDirectInterleaved, boolean multiDrawDirectSeparate, boolean multiDrawIndirect, boolean drawIndirect, boolean nonZeroFirstInstance, boolean persistentMapping) Creates an instance of aDeviceFeaturesrecord class.- Parameters:
shaderDrawParameters- the value for theshaderDrawParametersrecord componentmultiDrawDirectInterleaved- the value for themultiDrawDirectInterleavedrecord componentmultiDrawDirectSeparate- the value for themultiDrawDirectSeparaterecord componentmultiDrawIndirect- the value for themultiDrawIndirectrecord componentdrawIndirect- the value for thedrawIndirectrecord componentnonZeroFirstInstance- the value for thenonZeroFirstInstancerecord componentpersistentMapping- the value for thepersistentMappingrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
shaderDrawParameters
public boolean shaderDrawParameters()Returns the value of theshaderDrawParametersrecord component.- Returns:
- the value of the
shaderDrawParametersrecord component
-
multiDrawDirectInterleaved
public boolean multiDrawDirectInterleaved()Returns the value of themultiDrawDirectInterleavedrecord component.- Returns:
- the value of the
multiDrawDirectInterleavedrecord component
-
multiDrawDirectSeparate
public boolean multiDrawDirectSeparate()Returns the value of themultiDrawDirectSeparaterecord component.- Returns:
- the value of the
multiDrawDirectSeparaterecord component
-
multiDrawIndirect
public boolean multiDrawIndirect()Returns the value of themultiDrawIndirectrecord component.- Returns:
- the value of the
multiDrawIndirectrecord component
-
drawIndirect
public boolean drawIndirect()Returns the value of thedrawIndirectrecord component.- Returns:
- the value of the
drawIndirectrecord component
-
nonZeroFirstInstance
public boolean nonZeroFirstInstance()Returns the value of thenonZeroFirstInstancerecord component.- Returns:
- the value of the
nonZeroFirstInstancerecord component
-
persistentMapping
public boolean persistentMapping()Returns the value of thepersistentMappingrecord component.- Returns:
- the value of the
persistentMappingrecord component
-