BuilderModule.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <Atom/RHI.Reflect/Null/ReflectSystemComponent.h>
  9. #include <Atom/RHI.Reflect/ReflectSystemComponent.h>
  10. #include <AzCore/Module/Module.h>
  11. #include <RHI.Builders/ShaderPlatformInterfaceSystemComponent.h>
  12. namespace AZ
  13. {
  14. namespace Null
  15. {
  16. //! Exposes Null RHI Building components to the Asset Processor.
  17. class BuilderModule final
  18. : public AZ::Module
  19. {
  20. public:
  21. AZ_RTTI(BuilderModule, "{1D3566CB-9F75-4FCA-BBAD-09BC374F9171}", AZ::Module);
  22. BuilderModule()
  23. {
  24. m_descriptors.insert(m_descriptors.end(), {
  25. ShaderPlatformInterfaceSystemComponent::CreateDescriptor()
  26. });
  27. }
  28. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  29. {
  30. return
  31. {
  32. azrtti_typeid<ShaderPlatformInterfaceSystemComponent>(),
  33. };
  34. }
  35. };
  36. } // namespace Null
  37. } // namespace AZ
  38. #if defined(O3DE_GEM_NAME)
  39. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Builders), AZ::Null::BuilderModule)
  40. #else
  41. AZ_DECLARE_MODULE_CLASS(Gem_Atom_RHI_Null_Builders, AZ::Null::BuilderModule)
  42. #endif