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 ornullif 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
ConstructorsConstructorDescriptionContext(ShaderPreDefinitions preDefinitions, ShaderSourceSet sourceSet, @Nullable ProgramDefinition definition) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ProgramDefinitionReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepreDefinitionsrecord component.Returns the value of thesourceSetrecord component.final StringtoString()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 aContextrecord class.- Parameters:
preDefinitions- the value for thepreDefinitionsrecord componentsourceSet- the value for thesourceSetrecord componentdefinition- the value for thedefinitionrecord 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 thepreDefinitionsrecord component.- Returns:
- the value of the
preDefinitionsrecord component
-
sourceSet
Returns the value of thesourceSetrecord component.- Returns:
- the value of the
sourceSetrecord component
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-