The requested operation could not be completed because it is only valid while recording a state block. Call the TDx_3DDevice::BeginStateBlock() method, and try again.