Record Class ShaderCompiler.Context
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.shader.ShaderCompiler.Context
- Record Components:
activeBuffers
- The currently active bufferssourceSet
- The shader source set to compile fordefinition
- The definition the shader is being compiled for
- Enclosing interface:
ShaderCompiler
public static record ShaderCompiler.Context(int activeBuffers, ShaderSourceSet sourceSet, ProgramDefinition definition)
extends Record
Context for compiling shaders and programs.
-
Constructor Summary
ConstructorDescriptionContext
(int activeBuffers, ShaderSourceSet sourceSet, ProgramDefinition definition) Creates an instance of aContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theactiveBuffers
record component.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 thesourceSet
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Context
Creates an instance of aContext
record class.- Parameters:
activeBuffers
- the value for theactiveBuffers
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
activeBuffers
public int activeBuffers()Returns the value of theactiveBuffers
record component.- Returns:
- the value of the
activeBuffers
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
-