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

  • Constructor Details

    • ShaderBufferBlock

      public ShaderBufferBlock()
  • Method Details

    • setBufferObject

      public void setBufferObject(ShaderBufferBlock.BufferType type, BufferObject bufferObject)
      Set the new buffer object.
      Parameters:
      bufferObject - the new buffer object.
    • getType

      public ShaderBufferBlock.BufferType getType()
    • 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.
    • getBufferObjectRef

      public WeakReference<BufferObject> getBufferObjectRef()
    • setBufferObjectRef

      public void setBufferObjectRef(WeakReference<BufferObject> bufferObjectRef)