eflles
eflles

Reputation: 6846

XNA on graphics card

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

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

Upvotes: 1

Views: 880

Answers (3)

Quintin
Quintin

Reputation:

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

Upvotes: 0

erikkallen
erikkallen

Reputation: 34391

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

Upvotes: 4

Nailer
Nailer

Reputation: 2436

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.

Upvotes: 5

Related Questions