• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Shaders Can a shader run a recursive algorithm?

MrPMorris

Member
I have a recursive algorithm to solve a problem (which Tetris pieces needed + where to place in order to fill a board).

I'm wondering if it is possible to write a shader in GameMaker that will allow me to solve this instead. Is it possible to run a recursive algorithm in a shader?
 

samspade

Member
I have a recursive algorithm to solve a problem (which Tetris pieces needed + where to place in order to fill a board).

I'm wondering if it is possible to write a shader in GameMaker that will allow me to solve this instead. Is it possible to run a recursive algorithm in a shader?
Is there a particular reason to use a shader rather than just normal code?
 
Top