GPU Shader ALU读书笔记

GPU的顶点着色器ALU是一个多线程向量处理器,处理四浮点数据。包含SIMD向量单元和特殊功能单元,分别执行不同类型的指令。虽然大多数指令执行时间为一个周期,但rcp和rsq在特定情况下需要更长时间。在顶点着色器ALU中,输入、常量、临时、地址和输出寄存器有特定数量和访问方式,每个寄存器可以处理4个32位值,通过.x, .y, .z, .w进行访问。" 118997878,8095331,《语言与机器》:计算机科学理论初探,"['计算机科学', '理论计算机', '编译原理', '可计算性理论', '计算复杂度理论']
摘要由CSDN通过智能技术生成

TheVertex Shader ALU is a multithreaded vector processor that operates onquad-float data.It consists of two functional units. The SIMD Vector Unit is responsible forthe mov, mul, add,mad, dp3, dp4, dst, min, max, slt, and sge instructions. The Special FunctionUnit is responsiblefor the rcp, rsq, logp, expp, and lit instructions. Most of these instructionstake one cycleto execute, although rcp and rsq take more than one cycle under specificcircumstances. Theytake only one slot in the vertex shader, but they actually take longer than onecycle to executewhen the result is used immediately because that leads to a register stall.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值