| 1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
|---|---|
| 2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
| 3 | #pragma once |
| 4 | |
| 5 | #include "BsCorePrerequisites.h" |
| 6 | #include "Reflection/BsRTTIType.h" |
| 7 | #include "Resources/BsGpuResourceData.h" |
| 8 | |
| 9 | namespace bs |
| 10 | { |
| 11 | /** @cond RTTI */ |
| 12 | /** @addtogroup RTTI-Impl-Core |
| 13 | * @{ |
| 14 | */ |
| 15 | |
| 16 | class BS_CORE_EXPORT GpuResourceDataRTTI : public RTTIType<GpuResourceData, IReflectable, GpuResourceDataRTTI> |
| 17 | { |
| 18 | public: |
| 19 | GpuResourceDataRTTI() |
| 20 | { } |
| 21 | |
| 22 | const String& getRTTIName() override |
| 23 | { |
| 24 | static String name = "GpuResourceData"; |
| 25 | return name; |
| 26 | } |
| 27 | |
| 28 | UINT32 getRTTIId() override |
| 29 | { |
| 30 | return TID_GpuResourceData; |
| 31 | } |
| 32 | |
| 33 | SPtr<IReflectable> newRTTIObject() override |
| 34 | { |
| 35 | BS_EXCEPT(InternalErrorException, "Cannot instantiate an abstract class."); |
| 36 | return nullptr; |
| 37 | } |
| 38 | }; |
| 39 | |
| 40 | /** @} */ |
| 41 | /** @endcond */ |
| 42 | } |