引言 这个寒假学DirectX11的时候用的书是<Introduction to 3D Game Programming with DirectX 11>,里面关于Shader的部分全都是用的Effects框架.用起来当然没什么问题,但我还是想把相关问题搞清楚,也就是这个框架是如何把HLSL中的各种Shader Object与应用程序中的接口联系起来的.比如: effect->GetVariableByName("WVP")->AsMatrix()->…
Shader.Find 查找 static function Find (name : string) : Shader Description描述 Finds a shader with the given name. 查找名为name的着色器. Shader.Find can be used to switch to another shader without having to keep a reference to the shader. name is the name you ca…