HairSystemComponent.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <AzCore/Asset/AssetCommon.h>
  11. #include <Atom/RPI.Public/Pass/PassSystemInterface.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. class SharedBuffer;
  17. namespace Hair
  18. {
  19. class HairSystemComponent final
  20. : public Component
  21. {
  22. public:
  23. AZ_COMPONENT(HairSystemComponent, "{F3A56326-1D2F-462D-A9E8-0405A76601A5}");
  24. HairSystemComponent();
  25. ~HairSystemComponent();
  26. static void Reflect(ReflectContext* context);
  27. static void GetProvidedServices(ComponentDescriptor::DependencyArrayType& provided);
  28. static void GetIncompatibleServices(ComponentDescriptor::DependencyArrayType& incompatible);
  29. static void GetRequiredServices(ComponentDescriptor::DependencyArrayType& required);
  30. private:
  31. //! Loads the pass templates mapping file
  32. void LoadPassTemplateMappings();
  33. ////////////////////////////////////////////////////////////////////////
  34. // Component interface implementation
  35. void Init() override;
  36. void Activate() override;
  37. void Deactivate() override;
  38. ////////////////////////////////////////////////////////////////////////
  39. //! Used for loading the pass templates of the hair gem.
  40. RPI::PassSystemInterface::OnReadyLoadTemplatesEvent::Handler m_loadTemplatesHandler;
  41. };
  42. } // namespace Hair
  43. } // End Render namespace
  44. } // End AZ namespace