MSL: Allow copy array from UniformConstant storage

This commit is contained in:
chirsz-ever 2022-01-05 17:45:21 +08:00
parent e9cc640334
commit 90c252274d
No known key found for this signature in database
GPG Key ID: B77928B94C65ABBF

View File

@ -8671,7 +8671,7 @@ void CompilerMSL::emit_array_copy(const string &lhs, uint32_t lhs_id, uint32_t r
{
is_constant = true;
}
else if (rhs_storage == StorageClassUniform)
else if (rhs_storage == StorageClassUniform || rhs_storage == StorageClassUniformConstant)
{
is_constant = true;
}