INNER CODE UNIT · C++
infos
meta4d-me/CatDogEngine · Engine/Source/Editor/EditorApp.cpp:458
auto& infos = m_pRenderContext->GetShaderCompileInfos();
auto it = infos.begin();
while (it != infos.end())
{
const auto& handles = it->m_taskHandles;
if (handles.find(handle) != handles.end())
{
const uint32_t entity = it->m_entity;
m_pRenderContext->AddCompileFailedEntity(entity);
engine::MaterialComponent* pMaterialComponent = m_pSceneWorld->GetMaterialComponent(entity);
pMaterialComponent->SetFactor(cd::MaterialPropertyGroup::BaseColor, cd::Vec3f{ 1.0f, 0.0f, 1.0f });
it = infos.erase(it);
}
else
{
++it;
}