Interface DynamicShaderBlock<T>

Type Parameters:
T - The type of object to serialize
All Superinterfaces:
AutoCloseable, org.lwjgl.system.NativeResource, ShaderBlock<T>
All Known Implementing Classes:
DynamicShaderBlockImpl, WrapperShaderBlockImpl

public interface DynamicShaderBlock<T> extends ShaderBlock<T>
A ShaderBlock that can be resized.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setSize(long newSize)
    Resizes this shader block to match the new size.

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free

    Methods inherited from interface foundry.veil.api.client.render.shader.definition.ShaderBlock

    getValue, set, update
  • Method Details

    • setSize

      void setSize(long newSize)
      Resizes this shader block to match the new size.
      Parameters:
      newSize - The size in bytes