This is a method of the IDirect3dExecuteBuffer Interface.
public int stateLight(int cnt, int bufferindex);