29 #ifndef __SHADERATOMICCOUNTER_H__
30 #define __SHADERATOMICCOUNTER_H__
56 Inst< SFNode > _metadata = 0,
57 Inst< SFInt32 > _initialValue = 0
64 virtual void preRender(
unsigned int program );
66 virtual void postRender();
69 virtual void render ( );
71 virtual void prepareAtomicCounterBuffer ();
73 virtual void initialize ( );
88 void applyInitialValue();
Contains the SFInt32 field class.
Contains the SFString field class.
Header file for ShaderChildNode.
A ShaderAtomicCounter is a atomic counter can be used in GLSL shader.
Definition: ShaderAtomicCounter.h:51
unsigned int atomic_counter_binding
the atomic counter binding point for atomic counter buffer will be used by the shader to access the d...
Definition: ShaderAtomicCounter.h:100
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: ShaderAtomicCounter.h:81
H3DUniquePtr< SFInt32 > initialValue
initial value for the atomic counter
Definition: ShaderAtomicCounter.h:61
int buffer_id
buffer id, generated by openGL
Definition: ShaderAtomicCounter.h:94
unsigned int program_handle
shader program that this shader storage buffer will be attached
Definition: ShaderAtomicCounter.h:91
bool do_init_value
A flag to indicate that the counter should be reset.
Definition: ShaderAtomicCounter.h:103
This is the base node type for the child nodes of the ComposedShader node.
Definition: ShaderChildNode.h:44
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194