Class DynamicShaderBlockImpl<T>
java.lang.Object
foundry.veil.render.shader.definition.ShaderBlockImpl<T>
foundry.veil.render.shader.definition.DynamicShaderBlockImpl<T>
- Type Parameters:
T- The type of object to serialize
- All Implemented Interfaces:
DynamicShaderBlock<T>,ShaderBlock<T>,AutoCloseable,org.lwjgl.system.NativeResource
@Internal
public class DynamicShaderBlockImpl<T>
extends ShaderBlockImpl<T>
implements DynamicShaderBlock<T>
Dynamic-size implementation of
ShaderBlock.-
Field Summary
Fields inherited from class foundry.veil.render.shader.definition.ShaderBlockImpl
buffer, dirty, serializer, value -
Method Summary
Methods inherited from class foundry.veil.render.shader.definition.ShaderBlockImpl
free, 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
close, freeMethods inherited from interface foundry.veil.render.shader.definition.ShaderBlock
getValue, set, update
-
Method Details
-
setSize
public void setSize(int size) Description copied from interface:DynamicShaderBlockResizes this shader block to match the new size.- Specified by:
setSizein interfaceDynamicShaderBlock<T>- Parameters:
size- The size in bytes
-
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
-