Record Class ScreenEffectDefinition.Pass
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.api.client.effect.ScreenEffectDefinition.Pass
- Record Components:
uniforms- uniform blocks by name, each listing its uniforms in the shader's declaration order
- Enclosing class:
ScreenEffectDefinition
public static record ScreenEffectDefinition.Pass(net.minecraft.resources.Identifier vertexShader, net.minecraft.resources.Identifier fragmentShader, List<net.minecraft.client.renderer.PostChainConfig.Input> inputs, net.minecraft.resources.Identifier output, Map<String, List<ScreenEffectDefinition.UniformSpec>> uniforms)
extends Record
One draw of a fragment shader over its output target.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ScreenEffectDefinition.Pass> -
Constructor Summary
ConstructorsConstructorDescriptionPass(net.minecraft.resources.Identifier vertexShader, net.minecraft.resources.Identifier fragmentShader, List<net.minecraft.client.renderer.PostChainConfig.Input> inputs, net.minecraft.resources.Identifier output, Map<String, List<ScreenEffectDefinition.UniformSpec>> uniforms) Creates an instance of aPassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.IdentifierReturns the value of thefragmentShaderrecord component.final inthashCode()Returns a hash code value for this object.List<net.minecraft.client.renderer.PostChainConfig.Input> inputs()Returns the value of theinputsrecord component.net.minecraft.resources.Identifieroutput()Returns the value of theoutputrecord component.Set<net.minecraft.resources.Identifier> final StringtoString()Returns a string representation of this record class.uniforms()Returns the value of theuniformsrecord component.net.minecraft.resources.IdentifierReturns the value of thevertexShaderrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Pass
public Pass(net.minecraft.resources.Identifier vertexShader, net.minecraft.resources.Identifier fragmentShader, List<net.minecraft.client.renderer.PostChainConfig.Input> inputs, net.minecraft.resources.Identifier output, Map<String, List<ScreenEffectDefinition.UniformSpec>> uniforms) Creates an instance of aPassrecord class.- Parameters:
vertexShader- the value for thevertexShaderrecord componentfragmentShader- the value for thefragmentShaderrecord componentinputs- the value for theinputsrecord componentoutput- the value for theoutputrecord componentuniforms- the value for theuniformsrecord component
-
-
Method Details
-
referencedTargets
-
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 withObjects::equals(Object,Object). -
vertexShader
public net.minecraft.resources.Identifier vertexShader()Returns the value of thevertexShaderrecord component.- Returns:
- the value of the
vertexShaderrecord component
-
fragmentShader
public net.minecraft.resources.Identifier fragmentShader()Returns the value of thefragmentShaderrecord component.- Returns:
- the value of the
fragmentShaderrecord component
-
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
output
public net.minecraft.resources.Identifier output()Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
uniforms
-