DiffuseProbeGridQueryFullscreenPassData.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 <Atom/RPI.Reflect/Asset/AssetReference.h>
  10. #include <Atom/RPI.Reflect/Pass/RenderPassData.h>
  11. namespace AZ
  12. {
  13. namespace Render
  14. {
  15. //! Custom data for the DiffuseProbeGridQueryFullscreenPass, specified in the PassRequest.
  16. struct DiffuseProbeGridQueryFullscreenPassData
  17. : public RPI::RenderPassData
  18. {
  19. AZ_RTTI(DiffuseProbeGridQueryFullscreenPassData, "{170F11E4-F76C-41E2-90A8-71568A189B98}", RPI::RenderPassData);
  20. AZ_CLASS_ALLOCATOR(DiffuseProbeGridQueryFullscreenPassData, SystemAllocator, 0);
  21. DiffuseProbeGridQueryFullscreenPassData() = default;
  22. virtual ~DiffuseProbeGridQueryFullscreenPassData() = default;
  23. static void Reflect(ReflectContext* context)
  24. {
  25. if (auto* serializeContext = azrtti_cast<SerializeContext*>(context))
  26. {
  27. serializeContext->Class<DiffuseProbeGridQueryFullscreenPassData, RenderPassData>()
  28. ->Version(1)
  29. ->Field("Use Albedo Texture", &DiffuseProbeGridQueryFullscreenPassData::m_useAlbedoTexture)
  30. ;
  31. }
  32. }
  33. bool m_useAlbedoTexture = false;
  34. };
  35. } // namespace RPI
  36. } // namespace AZ