Class SizedShaderBlockImpl<T>

java.lang.Object
foundry.veil.impl.client.render.shader.definition.ShaderBlockImpl<T>
foundry.veil.impl.client.render.shader.definition.SizedShaderBlockImpl<T>
Type Parameters:
T - The type of object to serialize
All Implemented Interfaces:
ShaderBlock<T>, AutoCloseable, org.lwjgl.system.NativeResource

@Internal public class SizedShaderBlockImpl<T> extends ShaderBlockImpl<T>
Fixed-size implementation of ShaderBlock.
  • Field Details

  • Constructor Details

    • SizedShaderBlockImpl

      public SizedShaderBlockImpl(int binding, int size, BiConsumer<T,ByteBuffer> serializer)
  • Method Details

    • bind

      public void bind(int index)
      Description copied from class: ShaderBlockImpl
      Binds this block to the specified index.
      Specified by:
      bind in class ShaderBlockImpl<T>
      Parameters:
      index - The index to bind this block to
    • unbind

      public void unbind(int index)
      Description copied from class: ShaderBlockImpl
      Unbinds this block from the specified index.
      Specified by:
      unbind in class ShaderBlockImpl<T>
      Parameters:
      index - The index to unbind this block from