Class VeilUniformBlockState
java.lang.Object
foundry.veil.impl.client.render.pipeline.VeilUniformBlockState
Manages the state of uniform block bindings and their associated shader names.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbind(ShaderBlock<?> block) Binds the specified block and returns the used binding.voidbind(CharSequence name, ShaderBlock<?> block) Binds and assigns the bound index to all shaders under the specified name.voidclear()Clears all used bindings from the current frame.voidForces all shader bindings to be re-uploaded the next timebind(CharSequence, ShaderBlock)is called.voidunbind(ShaderBlock<?> block) Unbinds the specified shader block.
-
Constructor Details
-
VeilUniformBlockState
public VeilUniformBlockState()
-
-
Method Details
-
bind
Binds the specified block and returns the used binding.- Parameters:
block- The block to bind- Returns:
- The binding used
-
bind
Binds and assigns the bound index to all shaders under the specified name.- Parameters:
name- The name of the block to bind in shader codeblock- The block to bind
-
unbind
Unbinds the specified shader block.- Parameters:
block- The block to unbind
-
queueUpload
public void queueUpload()Forces all shader bindings to be re-uploaded the next timebind(CharSequence, ShaderBlock)is called. -
clear
public void clear()Clears all used bindings from the current frame.
-