Interface SodiumCompat


public interface SodiumCompat
Veil sodium compat implementation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @Nullable SodiumCompat
    Retrieves the compat instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceLocation>
     
    void
    Marks all chunks in the view dirty.
    void
    Recompiles all shaders from source.
    void
    setActiveBuffers(int activeBuffers)
    Sets the current shader active buffers.
  • Field Details

    • INSTANCE

      @Nullable static final @Nullable SodiumCompat INSTANCE
      Retrieves the compat instance. This will be null if sodium is not installed.
  • Method Details

    • getLoadedShaders

      it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceLocation> getLoadedShaders()
      Returns:
      A map of all shader IDs loaded by sodium
    • recompile

      @Experimental void recompile()
      Recompiles all shaders from source.
    • setActiveBuffers

      @Internal void setActiveBuffers(int activeBuffers)
      Sets the current shader active buffers. Will recompile/cache shaders as needed.
      Parameters:
      activeBuffers - The new active buffer flags
    • markChunksDirty

      void markChunksDirty()
      Marks all chunks in the view dirty.