StacksShaderCollectionFunctorSourceData.h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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 <MaterialFunctors/StacksShaderCollectionFunctor.h>
  10. #include <Atom/RPI.Edit/Material/MaterialFunctorSourceData.h>
  11. namespace AtomSampleViewer
  12. {
  13. class StacksShaderCollectionFunctor;
  14. //! This is an example of a MaterialFunctorSourceData subclass which creates a
  15. //! MaterialFunctor during asset processing.
  16. //! This is used with comprehensive.material to enable/disable variants of the "stacks" shader.
  17. class StacksShaderCollectionFunctorSourceData final
  18. : public AZ::RPI::MaterialFunctorSourceData
  19. {
  20. public:
  21. AZ_RTTI(StacksShaderCollectionFunctorSourceData, "{2B4678D5-5C1B-4BEE-99E5-9EC9FB871D37}", AZ::RPI::MaterialFunctorSourceData);
  22. static void Reflect(AZ::ReflectContext* context);
  23. using AZ::RPI::MaterialFunctorSourceData::CreateFunctor;
  24. FunctorResult CreateFunctor(const RuntimeContext& context) const override;
  25. };
  26. } // namespace AtomSampleViewer