| 123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #include "CmPrerequisites.h"
- #include "CmRTTIType.h"
- #include "CmGpuResource.h"
- namespace CamelotFramework
- {
- class CM_EXPORT GpuResourceRTTI : public RTTIType<GpuResource, Resource, GpuResourceRTTI>
- {
- public:
- GpuResourceRTTI()
- {
- }
- virtual const String& getRTTIName()
- {
- static String name = "GpuResource";
- return name;
- }
- virtual UINT32 getRTTIId()
- {
- return TID_GpuResource;
- }
- virtual std::shared_ptr<IReflectable> newRTTIObject()
- {
- CM_EXCEPT(InternalErrorException, "Cannot instantiate an abstract class.");
- }
- };
- }
|