|

楼主 |
发表于 2015-7-20 09:27:26
|
显示全部楼层
cndv3996 发表于 2015-7-14 16:41 
shader 可以写成字串, 然后提交给D3D或者OGL进行编译和执行,
不是由VS编译的。
D3D和OpenGL是图形接口,怎么去编译?下面是msdn原话的
As part of the build process, Visual Studio 2012 uses the fxc.exe HLSL code compiler to compile the .hlsl files into binary shader object files or into byte arrays that are defined in header files. |
|