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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
bind
(ShaderBlock<?> block) Binds the specified block and returns the used binding.void
bind
(CharSequence name, ShaderBlock<?> block) Binds and assigns the bound index to all shaders under the specified name.void
Clears all used bindings from the current frame.void
void
unbind
(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 the specified block and returns the used binding.- Parameters:
block
- The block to bind- Returns:
- The binding used
-
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() -
clearUsedBindings
public void clearUsedBindings()Clears all used bindings from the current frame.
-