Compute shader scheduler node More...
#include <Inventor/nodes/SoComputeShaderScheduler.h>
Public Types | |
enum | Policy { EACH_FRAME, ON_TRIGGER } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoComputeShaderScheduler () | |
virtual SbBool | affectsState () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFVec3i32 | numWorkGroups |
SoSFEnum | policy |
SoSFTrigger | trigger |
This node allows the application to setup the invocation of a compute shader.
When traversed by a rendering action, this node launches one or more compute work groups. Each work group is processed by the current SoShaderProgram for the SoComputeShader stage.
See Compute Shader section of the OpenGL wiki for more information about the execution model of compute shaders.
numWorkGroups | 1 1 1 |
policy | EACH_FRAME |
SoComputeShader, SoShaderParameterBufferObject, SoShaderParameterImage, SoShaderProgram
NOTE: node available since Open Inventor 10.12SoComputeShaderScheduler::SoComputeShaderScheduler | ( | ) |
virtual SbBool SoComputeShaderScheduler::affectsState | ( | ) | const [inline, virtual] |
static SoType SoComputeShaderScheduler::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
virtual SoType SoComputeShaderScheduler::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
Specifies the number of local work groups dispatched in the X, Y and Z dimensions for the computation.
Default value is (1, 1, 1)
Specifies the policy used for scheduling the computation.
Use enum Policy. Default value is EACH_FRAME
Trigger field to execute the shader computation.
Effective only if policy is ON_TRIGGER.