Package foundry.veil.api.compat
Interface SodiumCompat
public interface SodiumCompat
Veil sodium compat implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @Nullable SodiumCompatRetrieves the compat instance. -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.resources.ResourceLocation> static booleanisLoaded()voidMarks all chunks in the view dirty.voidRecompiles all shaders from source.voidsetActiveBuffers(int activeBuffers) Sets the current shader active buffers.voidsetSortedRenderLists(@Nullable Object sortedRenderLists) voidsetTaskList(@Nullable Object taskList)
-
Field Details
-
INSTANCE
Retrieves the compat instance. This will benullif sodium is not installed.
-
-
Method Details
-
isLoaded
static boolean isLoaded()- Returns:
- Whether Sodium is loaded
-
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. -
getSortedRenderLists
-
setSortedRenderLists
-
getTaskLists
-
setTaskList
-