This extension allows applications to write generic compute shaders that operate on work groups with arbitrary dimensions. Instead of specifying a fixed
work group size in the compute shader, an application can use a compute shader using the local_size_variable layout qualifer to indicate a
variable work group size. When using such compute shaders, the new command DispatchComputeGroupSizeARB should be used to specify both a work group size
and work group count.
In this extension, compute shaders with fixed group sizes must be dispatched by DispatchCompute and DispatchComputeIndirect. Compute
shaders with variable group sizes must be dispatched via DispatchComputeGroupSizeARB. No support is provided in this extension for indirect dispatch
of compute shaders with a variable group size.
Requires OpenGL 4. or ARB_compute_shader.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB
Accepted by the |
| public static final int | GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB
Accepted by the |
| public static final int | GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB
Accepted by the |
| public static final int | GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static native void | glDispatchComputeGroupSizeARB(int
the number of work groups to be launched in the X dimension num_groups_x, int the number of work groups to be launched in the Y dimension num_groups_y, int the number of work groups to be launched in the Z dimension num_groups_z, int the group size in the X dimension group_size_x, int the group size in the Y dimension group_size_y, int the group size in the Z dimension group_size_z)Launches one or more compute work groups, with arbitrary dimensions. |
| GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB | back to summary |
|---|---|
| public static final int GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB Accepted by the | |
| GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB | back to summary |
|---|---|
| public static final int GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB Accepted by the | |
| GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB | back to summary |
|---|---|
| public static final int GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB Accepted by the | |
| GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB | back to summary |
|---|---|
| public static final int GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB Accepted by the | |
| ARBComputeVariableGroupSize | back to summary |
|---|---|
| protected ARBComputeVariableGroupSize() | |
| glDispatchComputeGroupSizeARB | back to summary |
|---|---|
| public static native void glDispatchComputeGroupSizeARB(int num_groups_x, int num_groups_y, int num_groups_z, int group_size_x, int group_size_y, int group_size_z) Launches one or more compute work groups, with arbitrary dimensions. An An An
| |