/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include #include #include #include #include namespace AZ { namespace Render { //! Compute pass that queries the diffuse irradiance from the DiffuseProbeGrids class DiffuseProbeGridQueryFullscreenPass final : public RPI::RenderPass { public: AZ_RPI_PASS(DiffuseProbeGridQueryFullscreenPass); AZ_RTTI(AZ::Render::DiffuseProbeGridQueryFullscreenPass, "{DDA729A6-DBC0-4CA0-A0FF-00BC30D1229B}", RPI::RenderPass); AZ_CLASS_ALLOCATOR(DiffuseProbeGridQueryFullscreenPass, SystemAllocator, 0); virtual ~DiffuseProbeGridQueryFullscreenPass() = default; static RPI::Ptr Create(const RPI::PassDescriptor& descriptor); private: DiffuseProbeGridQueryFullscreenPass(const RPI::PassDescriptor& descriptor); void LoadShader(); // Pass overrides bool IsEnabled() const override; void SetupFrameGraphDependencies(RHI::FrameGraphInterface frameGraph) override; void CompileResources(const RHI::FrameGraphCompileContext& context) override; void BuildCommandListInternal(const RHI::FrameGraphExecuteContext& context) override; // pass descriptor RPI::PassDescriptor m_passDescriptor; // shader Data::Instance m_shader; const RHI::PipelineState* m_pipelineState = nullptr; RHI::Ptr m_objectSrgLayout; RHI::DispatchDirect m_dispatchArgs; // output buffer RHI::AttachmentId m_outputBufferAttachmentId; RHI::BufferDescriptor m_outputBufferDesc; RHI::BufferViewDescriptor m_outputBufferViewDesc; RPI::Ptr m_outputAttachment; }; } // namespace Render } // namespace AZ