Class ShaderBindingProcessor
java.lang.Object
foundry.veil.api.client.render.shader.processor.ShaderBindingProcessor
- All Implemented Interfaces:
 ShaderPreProcessor
Adds support for 
layout(binding = #) in the shader source without needing shader version 420.- 
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor
ShaderPreProcessor.Context, ShaderPreProcessor.IncludeOverloadStrategy, ShaderPreProcessor.MinecraftContext, ShaderPreProcessor.SodiumContext, ShaderPreProcessor.VeilContext - 
Field Summary
Fields inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor
NOOP - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidmodify(ShaderPreProcessor.Context ctx, io.github.ocelot.glslprocessor.api.node.GlslTree tree) Modifies the specified shader source input.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor
prepare 
- 
Constructor Details
- 
ShaderBindingProcessor
public ShaderBindingProcessor() 
 - 
 - 
Method Details
- 
modify
public void modify(ShaderPreProcessor.Context ctx, io.github.ocelot.glslprocessor.api.node.GlslTree tree) throws IOException, io.github.ocelot.glslprocessor.api.GlslSyntaxException, io.github.ocelot.glslprocessor.lib.anarres.cpp.LexerException Description copied from interface:ShaderPreProcessorModifies the specified shader source input.- Specified by:
 modifyin interfaceShaderPreProcessor- Parameters:
 ctx- Context for modifying shaderstree- The GLSL source code tree to modify- Throws:
 IOException- If any error occurs while editing the sourceio.github.ocelot.glslprocessor.api.GlslSyntaxException- If there was an error in the syntax of the source codeio.github.ocelot.glslprocessor.lib.anarres.cpp.LexerException- If an error occurs during shader C preprocessing
 
 -