Gems/Atom/RPI/Code/Source/RPI.Edit/Shader/ShaderVariantTreeAssetCreator.cpp
bool ShaderVariantTreeAssetCreator::End(Data::Asset<ShaderVariantTreeAsset>& result)
        {
            if (!ValidateIsReady())
            {
                return false;
            }

            if (!m_shaderOptionGroupLayout)
            {
                ReportError("No ShaderOptionGroupLayout has been set. Failed to finalize the ShaderVariantTreeAsset.");
                return false;
            }

            if (m_variantInfos.size() == 0)
            {
                ReportError("The list of source variants is not valid. Failed to finalize the ShaderVariantTreeAsset.");
                return false;
            }

            if (!EndInternal(result))
            {
                return false;
            }

            if (!m_asset->FinalizeAfterLoad())
            {
                ReportError("Failed to finalize the ShaderVariantTreeAsset.");
                return false;
            }

            m_asset->SetReady();
            return EndCommon(result);
        }
//! Finalizes and assigns ownership of the asset to result, if successful. 
//! Otherwise false is returned and result is left untouched.
Finalizes and assigns ownership of the asset to result, if successful.
Otherwise false is returned and result is left untouched.
Finalizes and assigns ownership of the asset to result if successful . Otherwise false is returned and result is left untouched .
bool ShaderVariantTreeAssetCreator::End(Data::Asset<ShaderVariantTreeAsset>& result)
        {
            if (!ValidateIsReady())
            {
                return false;
            }
            if (!m_shaderOptionGroupLayout)
            {
                ReportError("No ShaderOptionGroupLayout has been set. Failed to finalize the ShaderVariantTreeAsset.");
                return false;
            }
            if (m_variantInfos.size() == 0)
            {
                ReportError("The list of source variants is not valid. Failed to finalize the ShaderVariantTreeAsset.");
                return false;
            }
            if (!EndInternal(result))
            {
                return false;
            }
            if (!m_asset->FinalizeAfterLoad())
            {
                ReportError("Failed to finalize the ShaderVariantTreeAsset.");
                return false;
            }
            m_asset->SetReady();
            return EndCommon(result);
        }
bool ShaderVariantTreeAssetCreator :: End ( Data :: Asset < ShaderVariantTreeAsset > & result ) { if ( ! ValidateIsReady ( ) ) { return false ; } if ( ! m_shaderOptionGroupLayout ) { ReportError ( " " ) ; return false ; } if ( m_variantInfos . size ( ) == 0 ) { ReportError ( " " ) ; return false ; } if ( ! EndInternal ( result ) ) { return false ; } if ( ! m_asset -> FinalizeAfterLoad ( ) ) { ReportError ( " " ) ; return false ; } m_asset -> SetReady ( ) ; return EndCommon ( result ) ; }
Finalizes and assigns ownership of the asset to result, if successful.
Finalizes and assigns ownership of the asset to result if successful .