BsGpuResourceDataRTTI.h 962 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsRTTIType.h"
  6. #include "BsGpuResourceData.h"
  7. namespace BansheeEngine
  8. {
  9. /** @cond RTTI */
  10. /** @addtogroup RTTI-Impl-Core
  11. * @{
  12. */
  13. class BS_CORE_EXPORT GpuResourceDataRTTI : public RTTIType<GpuResourceData, IReflectable, GpuResourceDataRTTI>
  14. {
  15. public:
  16. GpuResourceDataRTTI()
  17. { }
  18. const String& getRTTIName() override
  19. {
  20. static String name = "GpuResourceData";
  21. return name;
  22. }
  23. UINT32 getRTTIId() override
  24. {
  25. return TID_GpuResourceData;
  26. }
  27. SPtr<IReflectable> newRTTIObject() override
  28. {
  29. BS_EXCEPT(InternalErrorException, "Cannot instantiate an abstract class.");
  30. return nullptr;
  31. }
  32. };
  33. /** @} */
  34. /** @endcond */
  35. }