CmGpuProgramImportOptions.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "CmPrerequisites.h"
  3. #include "CmImportOptions.h"
  4. #include "CmGpuProgram.h"
  5. namespace CamelotEngine
  6. {
  7. class CM_EXPORT GpuProgramImportOptions : public ImportOptions
  8. {
  9. public:
  10. GpuProgramImportOptions();
  11. void setEntryPoint(const String& entryPoint) { mEntryPoint = entryPoint; }
  12. void setLanguage(const String& language) { mLanguage = language; }
  13. void setProfile(GpuProgramProfile profile) { mProfile = profile; }
  14. void setType(GpuProgramType type) { mType = type; }
  15. const String& getEntryPoint() const { return mEntryPoint; }
  16. const String& getLanguage() const { return mLanguage; }
  17. GpuProgramProfile getProfile() const { return mProfile; }
  18. GpuProgramType getType() const { return mType; }
  19. /************************************************************************/
  20. /* SERIALIZATION */
  21. /************************************************************************/
  22. public:
  23. friend class GpuProgramImportOptionsRTTI;
  24. static RTTITypeBase* getRTTIStatic();
  25. virtual RTTITypeBase* getRTTI() const;
  26. private:
  27. String mEntryPoint;
  28. String mLanguage;
  29. GpuProgramProfile mProfile;
  30. GpuProgramType mType;
  31. };
  32. }