CUDA.DataAccess.hpp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // CodeGear C++Builder
  2. // Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'CUDA.DataAccess.pas' rev: 36.00 (Windows)
  5. #ifndef CUDA_DataAccessHPP
  6. #define CUDA_DataAccessHPP
  7. #pragma delphiheader begin
  8. #pragma option push
  9. #if defined(__BORLANDC__) && !defined(__clang__)
  10. #pragma option -w- // All warnings off
  11. #pragma option -Vx // Zero-length empty class member
  12. #endif
  13. #pragma pack(push,8)
  14. #include <System.hpp>
  15. #include <SysInit.hpp>
  16. #include <System.SysUtils.hpp>
  17. //-- user supplied -----------------------------------------------------------
  18. namespace Cuda
  19. {
  20. namespace Dataaccess
  21. {
  22. //-- forward type declarations -----------------------------------------------
  23. template<typename TScalar> class DELPHICLASS GCUDAHostElementAccess__1;
  24. //-- type declarations -------------------------------------------------------
  25. typedef System::Word THalfFloat;
  26. #pragma pack(push,4)
  27. // Template declaration generated by Delphi parameterized types is
  28. // used only for accessing Delphi variables and fields.
  29. // Don't instantiate with new type parameters in user code.
  30. template<typename TScalar> class PASCALIMPLEMENTATION GCUDAHostElementAccess__1 : public System::TObject
  31. {
  32. typedef System::TObject inherited;
  33. public:
  34. typedef System::StaticArray<TScalar, 2> TVector2;
  35. typedef System::Int8 _1;
  36. typedef System::StaticArray<TScalar, 3> TVector3;
  37. typedef System::Int8 _2;
  38. typedef System::StaticArray<TScalar, 4> TVector4;
  39. typedef System::Int8 _3;
  40. public:
  41. static _DELPHI_CONST int ElementSize = int(0x0);
  42. private:
  43. __classmethod void __fastcall CheckElementSize(unsigned ACNum);
  44. __classmethod TScalar __fastcall GetScalar();
  45. __classmethod System::StaticArray<TScalar, 2> __fastcall GetVector2();
  46. __classmethod System::StaticArray<TScalar, 3> __fastcall GetVector3();
  47. __classmethod System::StaticArray<TScalar, 4> __fastcall GetVector4();
  48. __classmethod void __fastcall SetScalar(const TScalar AValue);
  49. __classmethod void __fastcall SetVector2(const System::StaticArray<TScalar, 2> AValue);
  50. __classmethod void __fastcall SetVector3(const System::StaticArray<TScalar, 3> AValue);
  51. __classmethod void __fastcall SetVector4(const System::StaticArray<TScalar, 4> AValue);
  52. public:
  53. __property TScalar Scalar = {read=GetScalar, write=SetScalar};
  54. __property System::StaticArray<TScalar, 2> Vector2 = {read=GetVector2, write=SetVector2};
  55. __property System::StaticArray<TScalar, 3> Vector3 = {read=GetVector3, write=SetVector3};
  56. __property System::StaticArray<TScalar, 4> Vector4 = {read=GetVector4, write=SetVector4};
  57. public:
  58. /* TObject.Create */ inline __fastcall GCUDAHostElementAccess__1() : System::TObject() { }
  59. /* TObject.Destroy */ inline __fastcall virtual ~GCUDAHostElementAccess__1() { }
  60. };
  61. #pragma pack(pop)
  62. typedef GCUDAHostElementAccess__1<System::Byte> UByteElement;
  63. typedef GCUDAHostElementAccess__1<System::Int8> ByteElement;
  64. typedef GCUDAHostElementAccess__1<System::Word> UShortElement;
  65. typedef GCUDAHostElementAccess__1<short> ShortElement;
  66. typedef GCUDAHostElementAccess__1<System::LongWord> UIntElement;
  67. typedef GCUDAHostElementAccess__1<System::LongInt> IntElement;
  68. typedef GCUDAHostElementAccess__1<THalfFloat> HalfElement;
  69. typedef GCUDAHostElementAccess__1<float> FloatElement;
  70. typedef GCUDAHostElementAccess__1<double> DoubleElement;
  71. //-- var, const, procedure ---------------------------------------------------
  72. extern DELPHI_PACKAGE System::PByte __fastcall GetElementAccessAddress(void);
  73. extern DELPHI_PACKAGE unsigned __fastcall GetElementAccessSize(void);
  74. extern DELPHI_PACKAGE void __fastcall SetElementAccessAddress(System::PByte AValue, unsigned ASize);
  75. } /* namespace Dataaccess */
  76. } /* namespace Cuda */
  77. #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_CUDA_DATAACCESS)
  78. using namespace Cuda::Dataaccess;
  79. #endif
  80. #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_CUDA)
  81. using namespace Cuda;
  82. #endif
  83. #pragma pack(pop)
  84. #pragma option pop
  85. #pragma delphiheader end.
  86. //-- end unit ----------------------------------------------------------------
  87. #endif // CUDA_DataAccessHPP