Class SizedShaderBlockImpl<T>
java.lang.Object
foundry.veil.impl.client.render.shader.definition.ShaderBlockImpl<T>
foundry.veil.impl.client.render.shader.definition.SizedShaderBlockImpl<T>
- Type Parameters:
T- The type of object to serialize
- All Implemented Interfaces:
ShaderBlock<T>,AutoCloseable,org.lwjgl.system.NativeResource
Fixed-size implementation of
ShaderBlock.-
Field Summary
FieldsFields inherited from class foundry.veil.impl.client.render.shader.definition.ShaderBlockImpl
binding, buffer, dirty, value -
Constructor Summary
ConstructorsConstructorDescriptionSizedShaderBlockImpl(int binding, int size, BiConsumer<T, ByteBuffer> serializer) -
Method Summary
Methods inherited from class foundry.veil.impl.client.render.shader.definition.ShaderBlockImpl
free, getBinding, getValue, setMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lwjgl.system.NativeResource
closeMethods inherited from interface foundry.veil.api.client.render.shader.definition.ShaderBlock
update
-
Field Details
-
serializer
-
-
Constructor Details
-
SizedShaderBlockImpl
-
-
Method Details
-
bind
public void bind(int index) Description copied from class:ShaderBlockImplBinds this block to the specified index.- Specified by:
bindin classShaderBlockImpl<T>- Parameters:
index- The index to bind this block to
-
unbind
public void unbind(int index) Description copied from class:ShaderBlockImplUnbinds this block from the specified index.- Specified by:
unbindin classShaderBlockImpl<T>- Parameters:
index- The index to unbind this block from
-