XNA在显卡上 [英] XNA on graphics card

查看:152
本文介绍了XNA在显卡上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



(如何将工作负载移动到显卡上)


所有的图形都是由图形卡自动绘制的。在XNA中没有软件渲染器模式。

XNA设置的方式大多数几何体都被传输到图形卡顶点缓冲区对象。然后,固定的管线近似或着色器将被显卡应用于数据并显示在屏幕上。

简而言之:如果您希望对数据执行操作在显卡上。使用顶点和像素着色器。



编辑:

您还应该深入研究图形管道的细节更好地理解图形卡的工作方式。


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

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

解决方案

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.

这篇关于XNA在显卡上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆