Class VeilShaderBlockState
java.lang.Object
foundry.veil.impl.client.render.pipeline.VeilShaderBlockState
Manages the state of uniform block bindings and their associated shader names.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(CharSequence name, ShaderBlock<?> block) Binds and assigns the bound index to all shaders under the specified name.voidClears all used bindings from the current frame.voidForces all shader bindings to be updated next frame.voidunbind(ShaderBlock<?> block) Unbinds the specified shader block.
-
Field Details
-
RESERVED_BINDINGS
public static final int RESERVED_BINDINGS
-
-
Constructor Details
-
VeilShaderBlockState
public VeilShaderBlockState()
-
-
Method Details
-
bind
Binds and assigns the bound index to all shaders under the specified name.- Parameters:
name- The name of the block to bind in shader codeblock- The block to bind
-
unbind
Unbinds the specified shader block.- Parameters:
block- The block to unbind
-
onShaderCompile
public void onShaderCompile()Forces all shader bindings to be updated next frame. -
clearUsedBindings
public void clearUsedBindings()Clears all used bindings from the current frame.
-