Integrating latest 47acbe8

This commit is contained in:
alexpete
2021-03-25 13:57:57 -07:00
parent 448c549698
commit 75dc720198
10312 changed files with 2711566 additions and 671451 deletions
@@ -79,6 +79,19 @@ namespace AZ
->Field("ShaderTag", &ShaderCollection::Item::m_shaderTag)
;
}
if (BehaviorContext* behaviorContext = azrtti_cast<BehaviorContext*>(context))
{
behaviorContext->Class<Item>()
->Attribute(AZ::Script::Attributes::Scope, AZ::Script::Attributes::ScopeFlags::Automation)
->Attribute(AZ::Script::Attributes::Category, "Shader")
->Attribute(AZ::Script::Attributes::Module, "shader")
->Method("GetShaderAsset", &Item::GetShaderAsset)
->Method("GetShaderAssetId", &Item::GetShaderAssetId)
->Method("GetShaderVariantId", &Item::GetShaderVariantId)
->Method("GetShaderOptionGroup", &Item::GetShaderOptionGroup)
;
}
}
size_t ShaderCollection::size() const
@@ -236,5 +249,15 @@ namespace AZ
return m_shaderTag;
}
const Data::AssetId& ShaderCollection::Item::GetShaderAssetId() const
{
return m_shaderAsset->GetId();
}
const AZ::RPI::ShaderOptionGroup& ShaderCollection::Item::GetShaderOptionGroup() const
{
return m_shaderOptionGroup;
}
} // namespace RPI
} // namespace AZ