Added "RemovePassTemplate" method. (#5039)
* Added "RemovePassTemplate" method. Signed-off-by: garrieta <garrieta@amazon.com> * RemovePassTemplate only allows to remove PassTemplates created with the Runtime API. It now asserts if there are Passes referencing the PassTemplate that should be removed. Signed-off-by: garrieta <garrieta@amazon.com>
This commit is contained in:
@@ -466,6 +466,11 @@ namespace AZ
|
||||
return m_passLibrary.GetPassTemplate(name);
|
||||
}
|
||||
|
||||
void PassSystem::RemovePassTemplate(const Name& name)
|
||||
{
|
||||
m_passLibrary.RemovePassTemplate(name);
|
||||
}
|
||||
|
||||
void PassSystem::RemovePassFromLibrary(Pass* pass)
|
||||
{
|
||||
m_passLibrary.RemovePassFromLibrary(pass);
|
||||
|
||||
Reference in New Issue
Block a user