Package foundry.veil.api.compat
Interface SodiumCompat
public interface SodiumCompat
Veil sodium compat implementation.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @Nullable SodiumCompat
Retrieves the compat instance. -
Method Summary
Modifier and TypeMethodDescriptionit.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
Retrieves the compat instance. This will benull
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.
-