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
-
Method Summary
Modifier and TypeMethodDescriptionint
bind
(ShaderBlock<?> block) Binds the specified block and returns the used binding.void
bind
(CharSequence name, ShaderBlock<?> block) Binds and assigns the bound index to all shaders under the specified name.void
clear()
Clears all used bindings from the current frame.void
Forces all shader bindings to be re-uploaded the next timebind(CharSequence, ShaderBlock)
is called.void
unbind
(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.
-