CUDA.Register.pas 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // The graphics platform GLScene https://github.com/glscene
  3. //
  4. unit CUDA.Register;
  5. (* Registration unit for GPU Computing package *)
  6. interface
  7. uses
  8. System.Classes,
  9. System.SysUtils,
  10. DesignIntf,
  11. DesignEditors,
  12. ToolsAPI,
  13. StrEdit,
  14. GLS.SceneRegister,
  15. CUDA.APIComps,
  16. CUDA.Context,
  17. CUDA.PropEditors;
  18. procedure Register;
  19. //--------------------------------------------------------------------
  20. implementation
  21. //--------------------------------------------------------------------
  22. uses
  23. CUDA.RunTime,
  24. CUDA.Graphics,
  25. CUDA.Compiler,
  26. CUDA.FFTPlan,
  27. CUDA.Parser;
  28. procedure Register;
  29. begin
  30. RegisterComponents('GLScene GPU Computing', [TGLCUDA, TGLCUDADevice, TGLCUDACompiler]);
  31. RegisterComponentEditor(TGLCUDA, TGLCUDAEditor);
  32. RegisterComponentEditor(TGLCUDACompiler, TGLCUDACompilerEditor);
  33. RegisterPropertyEditor(TypeInfo(string), TGLCUDACompiler, 'ProjectModule',
  34. TGLCUDACompilerSourceProperty);
  35. RegisterPropertyEditor(TypeInfo(string), TGLCUDADevice, 'SelectDevice',
  36. TGLCUDADeviceProperty);
  37. RegisterNoIcon([TCUDAModule, TCUDAMemData, TCUDAFunction, TCUDATexture,
  38. TCUDAFFTPlan, TCUDAImageResource, TCUDAGeometryResource, TCUDAConstant, TCUDAFuncParam]);
  39. ObjectManager.RegisterSceneObject(TCUDAFeedbackMesh, 'CUDA generated mesh',
  40. 'CUDA Computing', HInstance);
  41. end;
  42. //------------------------------------------------------
  43. initialization
  44. //------------------------------------------------------
  45. vFindCuFileFunc := FindCuFile;
  46. end.