Microsoft AMP for C++ with Dr Dobbs example?

Microsoft AMP for C++ with Dr Dobbs example?

本文关键字:Dobbs example Dr with AMP for C++ Microsoft      更新时间:2023-10-16

我正在尝试找出完整的代码,如以下解释:

http://www.drdobbs.com/windows/microsofts-c-amp-unveiled/231600761?pgno=2

我正在尝试找出如何使用简单C++AMP版本生成完整的代码示例?如何定义网格对象?我需要使用哪个标头才能使用 direct3d?似乎我的Visual Studio 2012将这些标记为未定义。谢谢

我以前从未见过restrict(direct3d)。 我怀疑它应该是restrict(amp).

您还需要#include <amp.h>