Row Rebel
Row Rebel

Reputation: 267

Do compute shaders in OpenGl have instruction limits?

I've looked everywhere and couldn't find a definitive answer

vertex and fragment shaders do in fact have a limit on the maximum size of the shader and number of instructions, but i've never heard about those limitations on a compute shader

Since I need to port an existing CPU Path tracer with many different BRDFs I need to know in advance if this could be an issue and move to CUDA or if OpenGL's compute shaders could handle the work just fine

Upvotes: 2

Views: 634

Answers (1)

Nicol Bolas
Nicol Bolas

Reputation: 473352

There are always limits. But these limits are implementation-defined; they're not expressed in any a-priori determinable way. So the only way you'll find out what they are is to cross them.

CUDA has limits too.

Upvotes: 3

Related Questions