Package com.jme3.shader
Class ShaderBufferBlock
java.lang.Object
com.jme3.shader.ShaderVariable
com.jme3.shader.ShaderBufferBlock
Implementation of shader's buffer block.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected BufferObject
Current used buffer object.protected WeakReference<BufferObject>
protected ShaderBufferBlock.BufferType
Fields inherited from class com.jme3.shader.ShaderVariable
LOC_NOT_DEFINED, LOC_UNKNOWN, location, name, updateNeeded
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the flagisUpdateNeeded()
.Get the current storage data.getType()
boolean
Return true if need to update this storage block.void
reset()
Reset this storage block.void
setBufferObject
(ShaderBufferBlock.BufferType type, BufferObject bufferObject) Set the new buffer object.void
setBufferObjectRef
(WeakReference<BufferObject> bufferObjectRef) Methods inherited from class com.jme3.shader.ShaderVariable
getLocation, getName, setLocation, setName
-
Field Details
-
bufferObject
Current used buffer object. -
bufferObjectRef
-
type
-
-
Constructor Details
-
ShaderBufferBlock
public ShaderBufferBlock()
-
-
Method Details
-
setBufferObject
Set the new buffer object.- Parameters:
bufferObject
- the new buffer object.
-
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 flagisUpdateNeeded()
. -
reset
public void reset()Reset this storage block. -
getBufferObject
Get the current storage data.- Returns:
- the current storage data.
-
getBufferObjectRef
-
setBufferObjectRef
-