Interface ShaderPreProcessor.VeilContext
- All Superinterfaces:
ShaderPreProcessor.Context
- Enclosing interface:
ShaderPreProcessor
public static non-sealed interface ShaderPreProcessor.VeilContext
extends ShaderPreProcessor.Context
Context for modifying source code and shader behavior.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addUniformBinding
(String name, int binding) Sets the uniform binding for a shader.@Nullable ProgramDefinition
Methods inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor.Context
activeBuffers, customProgramData, include, include, isFragment, isGeometry, isSourceFile, isTessellationControl, isTessellationEvaluation, isVertex, macros, modifyInclude, name, preDefinitions, shaderImporter, type, typeName
-
Method Details
-
addUniformBinding
Sets the uniform binding for a shader.- Parameters:
name
- The name of the uniformbinding
- The binding to set it to
-
definition
- Returns:
- The definition of the program this is being compiled for or
null
if the shader is standalone
-