Original Post
I have sorted the items that I wish to draw by their Effect ID, but how should draw these groups of items with similar effects? Is it done this way: Effect->Begin(); Effect->BeginPass(); SetVB/IB and constants for Object1 DrawObject1 Effect->EndPass(); Effect->BeginPass(); SetVB/IB and constants for Object2 DrawObject2 Effect->EndPass(); Effect->End(); or should I do it: SetVB/IB and constants for Object1 Effect->Begin(); Effect->BeginPass(); DrawObject1 Effect->EndPass(); Effect->End(); Repeat for next few objects Which is the correct method to render the objects that have been sorted by Effect?