Class VeilShaderBufferCache
java.lang.Object
foundry.veil.impl.client.render.pipeline.VeilShaderBufferCache
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
@Internal
public class VeilShaderBufferCache
extends Object
implements org.lwjgl.system.NativeResource
Manages the existence of registered shader blocks.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind()
void
bind
(VeilShaderBufferLayout<?> layout) void
free()
<T> @Nullable ShaderBlock
<T> getBlock
(VeilShaderBufferLayout<T> layout) void
onShaderCompile
(Map<net.minecraft.resources.ResourceLocation, ShaderProgram> updatedPrograms) void
unbind
(VeilShaderBufferLayout<?> layout) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Constructor Details
-
VeilShaderBufferCache
public VeilShaderBufferCache()
-
-
Method Details
-
onShaderCompile
public void onShaderCompile(Map<net.minecraft.resources.ResourceLocation, ShaderProgram> updatedPrograms) -
bind
public void bind() -
unbindPacked
public void unbindPacked() -
getBlock
@Nullable public <T> @Nullable ShaderBlock<T> getBlock(VeilShaderBufferLayout<T> layout) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
bind
- Throws:
IllegalArgumentException
-
unbind
- Throws:
IllegalArgumentException
-
free
public void free()- Specified by:
free
in interfaceorg.lwjgl.system.NativeResource
-