Class DynamicShaderProgramImpl
java.lang.Object
foundry.veil.impl.client.render.shader.program.ShaderProgramImpl
foundry.veil.impl.client.render.shader.program.DynamicShaderProgramImpl
- All Implemented Interfaces:
MutableUniformAccess,ShaderProgram,TextureUniformAccess,UniformAccess,AutoCloseable,org.lwjgl.system.NativeResource
-
Nested Class Summary
Nested classes/interfaces inherited from class foundry.veil.impl.client.render.shader.program.ShaderProgramImpl
ShaderProgramImpl.CompiledProgram, ShaderProgramImpl.ShaderTexture, ShaderProgramImpl.ShaderWrapper, ShaderProgramImpl.UniformWrapper, ShaderProgramImpl.Wrapper -
Field Summary
Fields inherited from class foundry.veil.impl.client.render.shader.program.ShaderProgramImpl
DUMMY_FRAGMENT_SHADER -
Constructor Summary
ConstructorsConstructorDescriptionDynamicShaderProgramImpl(net.minecraft.resources.ResourceLocation id, Runnable onFree) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachShaders(ShaderProgramImpl.CompiledProgram compiledProgram, ShaderSourceSet sourceSet, ShaderCompiler compiler) voidfree()@Nullable ShaderProgramImplvoidprocessShaderSources(ShaderProcessorList processorList, ShaderPreDefinitions definitions, int activeBuffers) voidsetOldShader(@Nullable ShaderProgramImpl program) voidsetShaderSources(it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> shaderSources) Methods inherited from class foundry.veil.impl.client.render.shader.program.ShaderProgramImpl
addShaderBlock, applyProgram, bind, bindSamplers, clearSamplers, clearShaderBlocks, compile, freeInternal, getActiveDynamicBuffers, getDefinition, getDefinitionDependencies, getFormat, getName, getOrCreateUniform, getProgram, getRequiredFeatures, getShaders, getStorageBlock, getUniform, getUniformBlock, getUniformLocation, getUniformSafe, hasStorageBlock, hasUniform, hasUniformBlock, isValid, recompile, removeSampler, restoreBlendState, saveBlendState, setActiveBuffers, setDefaultUniforms, setSampler, toShaderInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lwjgl.system.NativeResource
closeMethods inherited from interface foundry.veil.api.client.render.shader.program.ShaderProgram
hasFragment, hasGeometry, hasTesselation, hasVertex, isCompute, setDefaultUniforms, setStorageBlock, setUniformBlockMethods inherited from interface foundry.veil.api.client.render.shader.program.TextureUniformAccess
bindSamplers, setFramebufferSamplers, setSampler
-
Constructor Details
-
DynamicShaderProgramImpl
-
-
Method Details
-
attachShaders
protected void attachShaders(ShaderProgramImpl.CompiledProgram compiledProgram, ShaderSourceSet sourceSet, ShaderCompiler compiler) throws ShaderException - Overrides:
attachShadersin classShaderProgramImpl- Throws:
ShaderException
-
setShaderSources
-
processShaderSources
public void processShaderSources(ShaderProcessorList processorList, ShaderPreDefinitions definitions, int activeBuffers) -
free
public void free()- Specified by:
freein interfaceorg.lwjgl.system.NativeResource- Overrides:
freein classShaderProgramImpl
-
getOldShader
-
setOldShader
-