Package icyllis.arc3d.granite
Class UniformTracker
java.lang.Object
icyllis.arc3d.granite.UniformTracker
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bindUniforms
(int binding, DrawCommandList commandList) boolean
setCurrentUniforms
(int pipelineIndex, int uniformIndex) int
trackUniforms
(int pipelineIndex, IntBuffer data) Maps a given {pipeline index, uniform data cache index} pair to a buffer index within the pipeline's accumulated array of uniforms.boolean
writeUniforms
(DrawBufferManager bufferManager)
-
Constructor Details
-
UniformTracker
public UniformTracker()
-
-
Method Details
-
trackUniforms
Maps a given {pipeline index, uniform data cache index} pair to a buffer index within the pipeline's accumulated array of uniforms.- Parameters:
data
- a stable pointer to uniform data- Returns:
- uniform index
-
writeUniforms
-
setCurrentUniforms
public boolean setCurrentUniforms(int pipelineIndex, int uniformIndex) -
bindUniforms
-