CmGpuResourceRTTI.h 604 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "CmPrerequisites.h"
  3. #include "CmRTTIType.h"
  4. #include "CmGpuResource.h"
  5. namespace CamelotFramework
  6. {
  7. class CM_EXPORT GpuResourceRTTI : public RTTIType<GpuResource, Resource, GpuResourceRTTI>
  8. {
  9. public:
  10. GpuResourceRTTI()
  11. {
  12. }
  13. virtual const String& getRTTIName()
  14. {
  15. static String name = "GpuResource";
  16. return name;
  17. }
  18. virtual UINT32 getRTTIId()
  19. {
  20. return TID_GpuResource;
  21. }
  22. virtual std::shared_ptr<IReflectable> newRTTIObject()
  23. {
  24. CM_EXCEPT(InternalErrorException, "Cannot instantiate an abstract class.");
  25. }
  26. };
  27. }