着色器编译器如何工作? [英] How do shader compilers work?

查看:376
本文介绍了着色器编译器如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人具有对着色器编译器/图形驱动程序编译器内部工作的文档和研究的参考?

Does anyone have references to documents and research specific on the inner workings of shader compilers/graphics drivers compilers?

推荐答案

在编写普通C编译器和编写着色器编译器之间没有什么大的区别。编写编译器的标准书是所谓的龙书:

There's no big difference between writing an ordinary C compiler and writing a shader compiler. The standard book on writing compilers is the so called "Dragon Book":

http://www.amazon.com/Compilers-Principles-Techniques-Tools-2nd/dp/0321486811/ref=ntt_at_ep_dpi_1

这篇关于着色器编译器如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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