* Create helper function for getting threads per
group from a compute shader
Added GetComputeShaderNumThreads() functions to RPIUtils.
By default the function returns 1, 1, 1 in case of errors.
Updated existing code that was looking for 'numthreads' attribute data
with the new GetComputeShaderNumThreads() API.
Signed-off-by: garrieta <garrieta@amazon.com>
//! Same as above. Provided as a convenience when all arguments of the 'numthreads' attributes should be assigned to RHI::DispatchDirect::m_threadsPerGroup* variables.
errorMsg=AZStd::string::format("Was expecting argument '%zu' in attribute '%s' to be of type 'int' from shader asset '%s'",argIndex,attributeName.GetCStr(),shaderAsset.GetHint().c_str());
returnfalse;
}
}
else
{
errorMsg=AZStd::string::format("Was expecting at least '%zu' arguments in attribute '%s' from shader asset '%s'",argIndex+1,attributeName.GetCStr(),shaderAsset.GetHint().c_str());