/* * 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 * */ #include #include #include #include #include namespace Terrain { void TerrainMacroTextureComputePassData::Reflect(AZ::ReflectContext* context) { if (auto* serializeContext = azrtti_cast(context)) { serializeContext->Class() ->Version(1); } } AZ::RPI::Ptr TerrainMacroTextureComputePass::Create(const AZ::RPI::PassDescriptor& descriptor) { AZ::RPI::Ptr pass = aznew TerrainMacroTextureComputePass(descriptor); return pass; } TerrainMacroTextureComputePass::TerrainMacroTextureComputePass(const AZ::RPI::PassDescriptor& descriptor) : AZ::RPI::ComputePass(descriptor) { const TerrainMacroTextureComputePass* passData = AZ::RPI::PassUtils::GetPassData(descriptor); if (passData) { // Copy data to pass } } void TerrainMacroTextureComputePass::BuildCommandListInternal(const AZ::RHI::FrameGraphExecuteContext& context) { ComputePass::BuildCommandListInternal(context); } void TerrainMacroTextureComputePass::SetFeatureProcessor() { m_terrainFeatureProcessor = GetRenderPipeline()->GetScene()->GetFeatureProcessor(); } void TerrainMacroTextureComputePass::CompileResources(const AZ::RHI::FrameGraphCompileContext& context) { ComputePass::CompileResources(context); } } // namespace Terrain