Class SoComputeShaderScheduler

All Implemented Interfaces:
SafeDisposable

public class SoComputeShaderScheduler extends SoNode
Compute shader scheduler node. 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.

File format/default:

ComputeShaderScheduler {

    numWorkGroups 1 1 1
    policy EACH_FRAME
}

Since:
Open Inventor 10.12

See Also:
  • Field Details

    • numWorkGroups

      public final SoSFVec3i32 numWorkGroups
      Specifies the number of local work groups dispatched in the X, Y and Z dimensions for the computation. Default value is (1, 1, 1)
    • policy

      Specifies the policy used for scheduling the computation. . Default value is EACH_FRAME
    • trigger

      public final SoSFTrigger trigger
      Trigger field to execute the shader computation. Effective only if policy is ON_TRIGGER.
  • Constructor Details

    • SoComputeShaderScheduler

      public SoComputeShaderScheduler()