Class SizedShaderBlockImpl<T>
java.lang.Object
foundry.veil.impl.client.render.shader.block.ShaderBlockImpl<T>
foundry.veil.impl.client.render.shader.block.SizedShaderBlockImpl<T>
- All Implemented Interfaces:
ShaderBlock<T>,AutoCloseable,org.lwjgl.system.NativeResource
- Direct Known Subclasses:
LayoutShaderBlockImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class foundry.veil.impl.client.render.shader.block.ShaderBlockImpl
ShaderBlockImpl.StorageTypeNested classes/interfaces inherited from interface foundry.veil.api.client.render.shader.block.ShaderBlock
ShaderBlock.BufferBinding, ShaderBlock.MemoryLayout -
Field Summary
Fields inherited from class foundry.veil.impl.client.render.shader.block.ShaderBlockImpl
binding, buffer, dirty, value -
Constructor Summary
ConstructorsConstructorDescriptionSizedShaderBlockImpl(ShaderBlock.BufferBinding binding, int size, BiConsumer<T, ByteBuffer> serializer) -
Method Summary
Methods inherited from class foundry.veil.impl.client.render.shader.block.ShaderBlockImpl
getBinding, getIndex, getStorageType, getValue, set, setIndexMethods 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.block.ShaderBlock
update
-
Constructor Details
-
SizedShaderBlockImpl
public SizedShaderBlockImpl(ShaderBlock.BufferBinding binding, int size, BiConsumer<T, ByteBuffer> serializer)
-
-
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
-
free
public void free()- Specified by:
freein interfaceorg.lwjgl.system.NativeResource- Overrides:
freein classShaderBlockImpl<T>
-