Fix comment spelling

This commit is contained in:
moudgils
2021-06-09 18:37:27 -07:00
parent a55edd518a
commit 8e3a68a34f
2 changed files with 4 additions and 4 deletions
@@ -386,9 +386,9 @@ namespace AZ
void ArgumentBuffer::AddUntrackedResourcesToEncoder(id<MTLCommandEncoder> commandEncoder, const ShaderResourceGroupVisibility& srgResourcesVisInfo) const
{
//Map tp cache all the resoources based on the usage as we can batch all the resources for a given usage
//Map to cache all the resources based on the usage as we can batch all the resources for a given usage
ComputeResourcesToMakeResidentMap resourcesToMakeResidentCompute;
//Map tp cache all the resoources based on the usage and shader stage as we can batch all the resources for a given usage/shader usage
//Map to cache all the resources based on the usage and shader stage as we can batch all the resources for a given usage/shader usage
GraphicsResourcesToMakeResidentMap resourcesToMakeResidentGraphics;
//Cache the constant buffer associated with a srg
@@ -125,9 +125,9 @@ namespace AZ
AZStd::array<id <MTLResource>, MaxEntriesInArgTable> m_resourceArray;
int m_resourceArrayLen = 0;
};
//Map tp cache all the resoources based on the usage as we can batch all the resources for a given usage
//Map to cache all the resources based on the usage as we can batch all the resources for a given usage
using ComputeResourcesToMakeResidentMap = AZStd::unordered_map<MTLResourceUsage, MetalResourceArray>;
//Map tp cache all the resoources based on the usage and shader stage as we can batch all the resources for a given usage/shader usage
//Map to cache all the resources based on the usage and shader stage as we can batch all the resources for a given usage/shader usage
using GraphicsResourcesToMakeResidentMap = AZStd::unordered_map<AZStd::pair<MTLResourceUsage,MTLRenderStages>, MetalResourceArray>;
void CollectResourcesForCompute(id<MTLCommandEncoder> encoder, const ResourceBindingsSet& resourceBindingData, ComputeResourcesToMakeResidentMap& resourcesToMakeResidentMap) const;