Class ShaderBufferBlock

java.lang.Object
com.jme3.shader.ShaderVariable
com.jme3.shader.ShaderBufferBlock

public class ShaderBufferBlock extends ShaderVariable
Implementation of shader's buffer block.
  • Field Details

    • bufferObject

      protected BufferObject bufferObject
      Current used buffer object.
  • Constructor Details

    • ShaderBufferBlock

      public ShaderBufferBlock()
  • Method Details

    • setBufferObject

      public void setBufferObject(BufferObject bufferObject)
      Set the new buffer object.
      Parameters:
      bufferObject - the new buffer object.
    • isUpdateNeeded

      public boolean isUpdateNeeded()
      Return true if need to update this storage block.
      Returns:
      true if need to update this storage block.
    • clearUpdateNeeded

      public void clearUpdateNeeded()
      Clear the flag isUpdateNeeded().
    • reset

      public void reset()
      Reset this storage block.
    • getBufferObject

      public BufferObject getBufferObject()
      Get the current storage data.
      Returns:
      the current storage data.