今天在进行多个technique测试的时候,犯了一个白痴的错误;也就是用了多个technique时,俺只用了一个effect->end();查看了下sdk,以及自己想着测试时,才大悟原来begin(),end()都是要相互对应的。
SDK上提到:All rendering in an effect is done within a matching pair of ID3DXEffect::Begin and ID3DXEffect::End calls. After all passes are rendered, ID3DXEffect::End must be called to end the active technique.
也就是一个ID3DXEffect::End就是结束当前的technique。
同时,beginpass,endpass也要注意。
An application signals the end of rendering an active pass by calling ID3DXEffect::EndPass. Each ID3DXEffect::EndPass must be part of a matching pair of ID3DXEffect::BeginPass and ID3DXEffect::EndPass calls.
插入表情