Class DynamicBufferManger
java.lang.Object
foundry.veil.impl.client.render.dynamicbuffer.DynamicBufferManger
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidvoidfree()intintstatic intgetShaderIndex(int glType, int activeBuffers) booleanreloadVanillaShaders(Collection<net.minecraft.client.renderer.ShaderInstance> shaders) Attempts to preload all vanilla minecraft shader files before creating the shaders on the CPU.voidresizeFramebuffers(int width, int height) booleansetActiveBuffers(int activeBuffers) voidsetEnabled(boolean enabled) voidsetupRenderState(net.minecraft.resources.ResourceLocation name, @Nullable com.mojang.blaze3d.pipeline.RenderTarget renderTarget) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lwjgl.system.NativeResource
close
-
Field Details
-
MAIN_WRAPPER
public static final net.minecraft.resources.ResourceLocation MAIN_WRAPPER
-
-
Constructor Details
-
DynamicBufferManger
public DynamicBufferManger(int width, int height)
-
-
Method Details
-
reloadVanillaShaders
public CompletableFuture<?> reloadVanillaShaders(Collection<net.minecraft.client.renderer.ShaderInstance> shaders) Attempts to preload all vanilla minecraft shader files before creating the shaders on the CPU.- Parameters:
shaders- The shaders to reload- Returns:
- A future for when vanilla shaders have reloaded
-
isCompilingShaders
public boolean isCompilingShaders() -
getActiveBuffers
public int getActiveBuffers() -
getBufferTexture
-
setActiveBuffers
public boolean setActiveBuffers(int activeBuffers) -
setEnabled
@Internal public void setEnabled(boolean enabled) -
free
public void free()- Specified by:
freein interfaceorg.lwjgl.system.NativeResource
-
setupRenderState
@Internal public void setupRenderState(net.minecraft.resources.ResourceLocation name, @Nullable @Nullable com.mojang.blaze3d.pipeline.RenderTarget renderTarget) -
clearRenderState
@Internal public void clearRenderState() -
clear
@Internal public void clear() -
resizeFramebuffers
@Internal public void resizeFramebuffers(int width, int height) -
getShaderIndex
public static int getShaderIndex(int glType, int activeBuffers)
-