GLS.CUDA.Register.pas 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // The graphics engine GLXEngine. The unit of GLScene for Delphi
  3. //
  4. unit GLS.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. GLS.CUDA.APIComps,
  16. GLS.CUDA.Compiler,
  17. GLS.CUDA.Context,
  18. GLS.CUDA.Graphics,
  19. GLS.CUDA.FFTPlan,
  20. GLS.CUDA.PropEditors;
  21. procedure Register;
  22. implementation //-------------------------------------------------------------
  23. uses
  24. CUDA.RunTime,
  25. CUDA.Parser;
  26. procedure Register;
  27. begin
  28. RegisterComponents('GLScene GPU Computing', [TGLCUDA, TGLCUDADevice, TGLCUDACompiler]);
  29. RegisterComponentEditor(TGLCUDA, TGLCUDAEditor);
  30. RegisterComponentEditor(TGLCUDACompiler, TGLCUDACompilerEditor);
  31. RegisterPropertyEditor(TypeInfo(string), TGLCUDACompiler, 'ProjectModule',
  32. TGLCUDACompilerSourceProperty);
  33. RegisterPropertyEditor(TypeInfo(string), TGLCUDADevice, 'SelectDevice',
  34. TGLCUDADeviceProperty);
  35. RegisterNoIcon([TCUDAModule, TCUDAMemData, TCUDAFunction, TCUDATexture,
  36. TCUDAFFTPlan, TCUDAImageResource, TCUDAGeometryResource, TCUDAConstant, TCUDAFuncParam]);
  37. ObjectManager.RegisterSceneObject(TCUDAFeedbackMesh, 'CUDA generated mesh',
  38. 'CUDA Computing', HInstance);
  39. end;
  40. initialization //------------------------------------------------------
  41. vFindCuFileFunc := FindCuFile;
  42. end.