Record Class ShaderCompiler.Context
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.shader.ShaderCompiler.Context
- Record Components:
preDefinitions
- The set of all shader pre-definitionssourceSet
- The location to load relative shader files fromdefinition
- The definition the shader is being compiled for ornull
if there is no program
- Enclosing interface:
- ShaderCompiler
public static record ShaderCompiler.Context(ShaderPreDefinitions preDefinitions, ShaderSourceSet sourceSet, @Nullable ProgramDefinition definition)
extends Record
Context for compiling shaders and programs.
-
Constructor Summary
ConstructorDescriptionContext
(ShaderPreDefinitions preDefinitions, ShaderSourceSet sourceSet, @Nullable ProgramDefinition definition) Creates an instance of aContext
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ProgramDefinition
Returns the value of thedefinition
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepreDefinitions
record component.Returns the value of thesourceSet
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Context
public Context(ShaderPreDefinitions preDefinitions, ShaderSourceSet sourceSet, @Nullable @Nullable ProgramDefinition definition) Creates an instance of aContext
record class.- Parameters:
preDefinitions
- the value for thepreDefinitions
record componentsourceSet
- the value for thesourceSet
record componentdefinition
- the value for thedefinition
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
preDefinitions
Returns the value of thepreDefinitions
record component.- Returns:
- the value of the
preDefinitions
record component
-
sourceSet
Returns the value of thesourceSet
record component.- Returns:
- the value of the
sourceSet
record component
-
definition
Returns the value of thedefinition
record component.- Returns:
- the value of the
definition
record component
-