Class VeilShaderBlockState

java.lang.Object
foundry.veil.impl.client.render.pipeline.VeilShaderBlockState

@Internal public class VeilShaderBlockState extends Object
Manages the state of uniform block bindings and their associated shader names.
  • Field Details

    • RESERVED_BINDINGS

      public static final int RESERVED_BINDINGS
  • Constructor Details

    • VeilShaderBlockState

      public VeilShaderBlockState()
  • Method Details

    • bind

      public int bind(ShaderBlock<?> block)
      Binds the specified block and returns the used binding.
      Parameters:
      block - The block to bind
      Returns:
      The binding used
    • bind

      public void bind(CharSequence name, ShaderBlock<?> block)
      Binds and assigns the bound index to all shaders under the specified name.
      Parameters:
      name - The name of the block to bind in shader code
      block - The block to bind
    • unbind

      public void unbind(ShaderBlock<?> block)
      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.