Record Class PipelineCompiler.PipelineProgramKey
java.lang.Object
java.lang.Record
dev.engine_room.flywheel.backend.compile.PipelineCompiler.PipelineProgramKey
- Record Components:
instanceType- The instance shader to use.contextShader- The context shader to use.light- The light shader to use.
- Enclosing class:
- PipelineCompiler
public static record PipelineCompiler.PipelineProgramKey(InstanceType<?> instanceType, ContextShader contextShader, LightShader light, MaterialShaders materialShaders, boolean useCutout, boolean debugEnabled, PipelineCompiler.OitMode oit)
extends Record
Represents the entire context of a program's usage.
-
Constructor Summary
ConstructorsConstructorDescriptionPipelineProgramKey(InstanceType<?> instanceType, ContextShader contextShader, LightShader light, MaterialShaders materialShaders, boolean useCutout, boolean debugEnabled, PipelineCompiler.OitMode oit) Creates an instance of aPipelineProgramKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextShaderrecord component.booleanReturns the value of thedebugEnabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.InstanceType<?>Returns the value of theinstanceTyperecord component.light()Returns the value of thelightrecord component.Returns the value of thematerialShadersrecord component.oit()Returns the value of theoitrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseCutoutrecord component.
-
Constructor Details
-
PipelineProgramKey
public PipelineProgramKey(InstanceType<?> instanceType, ContextShader contextShader, LightShader light, MaterialShaders materialShaders, boolean useCutout, boolean debugEnabled, PipelineCompiler.OitMode oit) Creates an instance of aPipelineProgramKeyrecord class.- Parameters:
instanceType- the value for theinstanceTyperecord componentcontextShader- the value for thecontextShaderrecord componentlight- the value for thelightrecord componentmaterialShaders- the value for thematerialShadersrecord componentuseCutout- the value for theuseCutoutrecord componentdebugEnabled- the value for thedebugEnabledrecord componentoit- the value for theoitrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
instanceType
Returns the value of theinstanceTyperecord component.- Returns:
- the value of the
instanceTyperecord component
-
contextShader
Returns the value of thecontextShaderrecord component.- Returns:
- the value of the
contextShaderrecord component
-
light
Returns the value of thelightrecord component.- Returns:
- the value of the
lightrecord component
-
materialShaders
Returns the value of thematerialShadersrecord component.- Returns:
- the value of the
materialShadersrecord component
-
useCutout
public boolean useCutout()Returns the value of theuseCutoutrecord component.- Returns:
- the value of the
useCutoutrecord component
-
debugEnabled
public boolean debugEnabled()Returns the value of thedebugEnabledrecord component.- Returns:
- the value of the
debugEnabledrecord component
-
oit
Returns the value of theoitrecord component.- Returns:
- the value of the
oitrecord component
-