Class VeilUniformBlockState

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

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

    • VeilUniformBlockState

      public VeilUniformBlockState()
  • 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
    • queueUpload

      public void queueUpload()
      Forces all shader bindings to be re-uploaded the next time bind(CharSequence, ShaderBlock) is called.
    • clear

      public void clear()
      Clears all used bindings from the current frame.