小编Ver*_*Bit的帖子

如何组装ARB组件

我只是读了这个文档:这个文档

我只是向下滚动,然后停在具有以下代码的示例程序1中:

!!ARBvp1.0
ATTRIB pos = vertex.position;
PARAM mat[4] = { state.matrix.mvp };
# Transform by concatenation of the
# MODELVIEW and PROJECTION matrices.
DP4 result.position.x, mat[0], pos;
DP4 result.position.y, mat[1], pos;
DP4 result.position.z, mat[2], pos;
DP4 result.position.w, mat[3], pos;
# Pass the primary color through w/o lighting.
MOV result.color, vertex.color;
END
Run Code Online (Sandbox Code Playgroud)

然后我才意识到“将代码放在哪里?”。所以我搜索了“如何组装ARB组件?” 或“如何使用ARB程序集?”。绝对找不到任何东西。
最后我在这里有一个问题:

  1. 哪个文件扩展名适合ARB汇编?
  2. 如何将这段代码汇编成可执行文件?

我也用Linux Mint 18.3 Cinnamon 64位

linux opengl assembly gpu

0
推荐指数
1
解决办法
82
查看次数

标签 统计

assembly ×1

gpu ×1

linux ×1

opengl ×1