Various new metal fixes (#1465)
* - Fix the second window related tabbing issue - Merge calls to UseResoources acrooaa all the SRGs - Move SamplerCache to the device to ensure only one cache to reduce duplication - Fixes to compute threading numbers getting reset to 0,0,0 - Cleanup withing BufferPoolResolver - Argument buffers are now queued to be cleaned up upon shutdown
This commit is contained in:
@@ -54,8 +54,14 @@ namespace AZ
|
||||
}
|
||||
|
||||
m_passData = *passData;
|
||||
ShaderReloadNotificationBus::Handler::BusConnect(passData->m_shaderReference.m_assetId);
|
||||
}
|
||||
|
||||
DownsampleMipChainPass::~DownsampleMipChainPass()
|
||||
{
|
||||
ShaderReloadNotificationBus::Handler::BusDisconnect();
|
||||
}
|
||||
|
||||
void DownsampleMipChainPass::ResetInternal()
|
||||
{
|
||||
RemoveChildren();
|
||||
@@ -206,5 +212,19 @@ namespace AZ
|
||||
ParentPass::FrameBeginInternal(params);
|
||||
}
|
||||
|
||||
void DownsampleMipChainPass::OnShaderReinitialized([[maybe_unused]] const Shader& shader)
|
||||
{
|
||||
m_needToUpdateChildren = true;
|
||||
}
|
||||
|
||||
void DownsampleMipChainPass::OnShaderAssetReinitialized([[maybe_unused]] const Data::Asset<ShaderAsset>& shaderAsset)
|
||||
{
|
||||
m_needToUpdateChildren = true;
|
||||
}
|
||||
|
||||
void DownsampleMipChainPass::OnShaderVariantReinitialized([[maybe_unused]] const ShaderVariant& shaderVariant)
|
||||
{
|
||||
m_needToUpdateChildren = true;
|
||||
}
|
||||
} // namespace RPI
|
||||
} // namespace AZ
|
||||
|
||||
Reference in New Issue
Block a user