| 582 | } |
| 583 | |
| 584 | clfftStatus clfftGetLayout( const clfftPlanHandle plHandle, clfftLayout* iLayout, clfftLayout* oLayout ) |
| 585 | { |
| 586 | FFTRepo& fftRepo = FFTRepo::getInstance( ); |
| 587 | FFTPlan* fftPlan = NULL; |
| 588 | lockRAII* planLock = NULL; |
| 589 | |
| 590 | OPENCL_V( fftRepo.getPlan( plHandle, fftPlan, planLock ), _T( "fftRepo.getPlan failed" ) ); |
| 591 | scopedLock sLock( *planLock, _T( "clfftGetLayout" ) ); |
| 592 | |
| 593 | *iLayout = fftPlan->inputLayout; |
| 594 | *oLayout = fftPlan->outputLayout; |
| 595 | |
| 596 | return CLFFT_SUCCESS; |
| 597 | } |
| 598 | |
| 599 | clfftStatus clfftSetLayout( clfftPlanHandle plHandle, clfftLayout iLayout, clfftLayout oLayout ) |
| 600 | { |