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 TypeMethodDescriptionvoidAdds a new shader definition dependencyvoidaddUniformBinding(String name, int binding) Sets the uniform binding for a shader.@Nullable ProgramDefinitionbooleanMethods inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor.Context
activeBuffers, customProgramData, hasFeatures, 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
-
addDefinitionDependency
Adds a new shader definition dependency- Parameters:
name- The name of the dependency to add- Since:
- 2.2.0
-
isDynamic
boolean isDynamic()- Returns:
- Whether the shader being compiled is dynamic
- Since:
- 2.2.0
- See Also:
-
definition
- Returns:
- The definition of the program this is being compiled for or
nullif the shader is standalone
-