Record Class GpuDebugOptions
java.lang.Object
java.lang.Record
com.mojang.blaze3d.shaders.GpuDebugOptions
public record GpuDebugOptions(int logLevel, boolean synchronousLogs, boolean useLabels)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thelogLevelrecord component.private final booleanThe field for thesynchronousLogsrecord component.private final booleanThe field for theuseLabelsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGpuDebugOptions(int logLevel, boolean synchronousLogs, boolean useLabels) Creates an instance of aGpuDebugOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlogLevel()Returns the value of thelogLevelrecord component.booleanReturns the value of thesynchronousLogsrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseLabelsrecord component.
-
Field Details
-
logLevel
private final int logLevelThe field for thelogLevelrecord component. -
synchronousLogs
private final boolean synchronousLogsThe field for thesynchronousLogsrecord component. -
useLabels
private final boolean useLabelsThe field for theuseLabelsrecord component.
-
-
Constructor Details
-
GpuDebugOptions
public GpuDebugOptions(int logLevel, boolean synchronousLogs, boolean useLabels) Creates an instance of aGpuDebugOptionsrecord class.- Parameters:
logLevel- the value for thelogLevelrecord componentsynchronousLogs- the value for thesynchronousLogsrecord componentuseLabels- the value for theuseLabelsrecord 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. -
logLevel
public int logLevel()Returns the value of thelogLevelrecord component.- Returns:
- the value of the
logLevelrecord component
-
synchronousLogs
public boolean synchronousLogs()Returns the value of thesynchronousLogsrecord component.- Returns:
- the value of the
synchronousLogsrecord component
-
useLabels
public boolean useLabels()Returns the value of theuseLabelsrecord component.- Returns:
- the value of the
useLabelsrecord component
-