2011年9月2日
摘要: 《Introtod3d10》里面关于hlsl的structurepacking有这样一段描述structLight{Light(){ZeroMemory(this,sizeof(Light));}D3DXVECTOR3pos;floatpad1;//notusedD3DXVECTOR3dir;floatpad2;//notusedD3DXCOLORambient;D3DXCOLORdiffuse;D3DXCOLORspecular;D3DXVECTOR3att;floatspotPow;floatrange;};Theissuewiththe“pad”variablesistomaketheC 阅读全文
posted @ 2011-09-02 21:59 Bester 阅读(323) 评论(0) 推荐(0)