views:

322

answers:

3

How can I program graphics on a graphics card with XNA?

(How do I move the workload onto the graphics card)

A: 

Have you tried doing some pixel shaders through DirectX? NVIDIA has programming guides. You may also want to check out GP GPU.

Sorry, the NVIDIA programming guides are here: http://developer.nvidia.com/object/gpu_programming_guide.html
+3  A: 

Explained in a very simplified way:

All of the graphics are automatically drawn by the graphics card. There is no software rendererer mode in XNA.

The way XNA is set up most geometry is transferred to the graphics card Vertex Buffer Objects. A fixed pipeline approximization or shaders are then applied to the data by the graphics card and displayed on screen.

In short: If you want to do operations on your data while it's on the graphics card. Use vertex and pixel shaders.

EDIT:

You should also delve into the details of the graphics pipeline to understand better how graphic cards work.

Nailer
+2  A: 

http://www.riemers.net is a greate site for understanding XNA and graphics programming in general.

erikkallen