BsGpuResourceDataRTTI.h 742 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include "BsCorePrerequisites.h"
  3. #include "BsRTTIType.h"
  4. #include "BsGpuResourceData.h"
  5. namespace BansheeEngine
  6. {
  7. /** @cond RTTI */
  8. /** @addtogroup RTTI-Impl-Core
  9. * @{
  10. */
  11. class BS_CORE_EXPORT GpuResourceDataRTTI : public RTTIType<GpuResourceData, IReflectable, GpuResourceDataRTTI>
  12. {
  13. public:
  14. GpuResourceDataRTTI()
  15. { }
  16. const String& getRTTIName() override
  17. {
  18. static String name = "GpuResourceData";
  19. return name;
  20. }
  21. UINT32 getRTTIId() override
  22. {
  23. return TID_GpuResourceData;
  24. }
  25. std::shared_ptr<IReflectable> newRTTIObject() override
  26. {
  27. BS_EXCEPT(InternalErrorException, "Cannot instantiate an abstract class.");
  28. }
  29. };
  30. /** @} */
  31. /** @endcond */
  32. }