gbdivers
gbdivers

Reputation: 1147

Dynamic shader in OpenGL

CUDA 5 and OpenCL 2 introduce dynamic Parallelism (kernels launched by another kernel via a device API, not by the host API).

Is there an equivalent to this in OpenGL? Is it possible to simulate them with feedback loops? (I think not) They don't miss in OpenGL (maybe in GL 4.3 compute shader) (shadow, texture, etc).

Upvotes: 2

Views: 514

Answers (1)

Chen
Chen

Reputation: 1180

According to this page, it seems that compute shaders in OpenGL don't support dynamic parallelism. You can only launch them with glDispatchCompute​() or glDispatchComputeIndirect​().

It is less possible for other shaders to have such support, because they are within the OpenGL processing stages.

Upvotes: 1

Related Questions