Chris
Chris

Reputation: 253

How complicate could the shaders be in OpenGL?

If I have a very complicate geometry shader, is there a limit of memory footprint for the codes?

Upvotes: 2

Views: 114

Answers (1)

Nicol Bolas
Nicol Bolas

Reputation: 474376

Shaders are not limited by "complexity", but by runtime. If a shader executes for too long, the GPU/OS will assume that the shader has entered an infinite loop and kill the shader's execution (and probably the application that launched it). How long that is depends on the GPU and possibly the shader stage.

Upvotes: 4

Related Questions