Hi,
I have a customized ray marching algorithm code and I want to run it in a metal shader. btw I am not sure how I can get the maximum performance in the metal shader. can you let me know what is the best way to get maximum performance between below 1) and 2) approach?
- Use Computing Pipeline.
make a kernel function for ray marching and link it into computing pipeline and display it as a image.
- Use Graphics Pipeline.
run the algorithm inside of the fragment shader directly and link it into graphics pipeline and display it directly.
Thanks,