Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I've got the Idea to use OpenCL to program a simple Renderer. A clear contra is, that this approach won't benefit from the hardware as the functions on the device (I think).

Would it be useful to do this in OpenCL..lets say we want to Cull as early as possible so we won't have many per vertex operations. Is it correct, that Culling is done after the Vertex-Shader? For static-vertecies who won't get effected by the shader it could be interesting to cull them before.

Another idea would be an deferred renderer.

So the main question is: Would it make sense to program a renderer in OpenCL (aside the effort)? The resulting picture would be drawn in OpenGL.

share|improve this question
Do you want to write a rasterizer in opencl? That should certainly possible, however a software rasterizer running on the GPU via openCL will likely not be as fast as using the hardware rasterizer directly. If the only thing you want to do is cull vertices before the vertex shader, there's nothing stopping you from doing that in openCL, and then only sending the remaining vertices down the opengl pipeline. – melak47 May 31 '12 at 14:09
Thank you for your response! Thats what I thought about first. Now I'm going to read link this work seems to deal with this problem but they're using CUDA =X Because I'm using AMD-Hardware I would like to stick to OpenCL – TOAOGG May 31 '12 at 17:51

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.