| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- //
- // The graphics platform GLScene https://github.com/glscene
- //
- unit CUDA.Register;
- (* Registration unit for GPU Computing package *)
- interface
- uses
- System.Classes,
- System.SysUtils,
- DesignIntf,
- DesignEditors,
- ToolsAPI,
- StrEdit,
- GLS.SceneRegister,
- CUDA.APIComps,
- CUDA.Context,
- CUDA.PropEditors;
- procedure Register;
- //--------------------------------------------------------------------
- implementation
- //--------------------------------------------------------------------
- uses
- CUDA.RunTime,
- CUDA.Graphics,
- CUDA.Compiler,
- CUDA.FFTPlan,
- CUDA.Parser;
- procedure Register;
- begin
- RegisterComponents('GLScene GPU Computing', [TGLCUDA, TGLCUDADevice, TGLCUDACompiler]);
- RegisterComponentEditor(TGLCUDA, TGLCUDAEditor);
- RegisterComponentEditor(TGLCUDACompiler, TGLCUDACompilerEditor);
- RegisterPropertyEditor(TypeInfo(string), TGLCUDACompiler, 'ProjectModule',
- TGLCUDACompilerSourceProperty);
- RegisterPropertyEditor(TypeInfo(string), TGLCUDADevice, 'SelectDevice',
- TGLCUDADeviceProperty);
- RegisterNoIcon([TCUDAModule, TCUDAMemData, TCUDAFunction, TCUDATexture,
- TCUDAFFTPlan, TCUDAImageResource, TCUDAGeometryResource, TCUDAConstant, TCUDAFuncParam]);
- ObjectManager.RegisterSceneObject(TCUDAFeedbackMesh, 'CUDA generated mesh',
- 'CUDA Computing', HInstance);
- end;
- //------------------------------------------------------
- initialization
- //------------------------------------------------------
- vFindCuFileFunc := FindCuFile;
- end.
|