ATOM-16249 Adding draw srg caching to DynamicDrawContext since creating SRG can be expensive for some backend (#4491)
* ATOM-16249 Adding draw srg caching to DynamicDrawContext since creating SRG can be expensive for some backend Signed-off-by: Qing Tao <qingtao@amazon.com>
This commit is contained in:
@@ -580,6 +580,11 @@ namespace AZ
|
||||
return {};
|
||||
}
|
||||
|
||||
void ShaderResourceGroup::ResetViews()
|
||||
{
|
||||
m_data.ResetViews();
|
||||
}
|
||||
|
||||
const RHI::SamplerState& ShaderResourceGroup::GetSampler(RHI::ShaderInputNameIndex& inputIndex, uint32_t arrayIndex) const
|
||||
{
|
||||
inputIndex.ValidateOrFindSamplerIndex(GetLayout());
|
||||
|
||||
Reference in New Issue
Block a user