metal: improve texture initialization.

This commit is contained in:
Alex Szpakowski
2022-01-16 14:18:34 -04:00
parent 44d87ff7ce
commit 3ecae61189
3 changed files with 92 additions and 24 deletions
+5
View File
@@ -2062,6 +2062,11 @@ Graphics::RendererInfo Graphics::getRendererInfo() const
int Graphics::getClosestMSAASamples(int requestedsamples)
{
// We currently rely on StoreAndMultisampleResolve (unfortunately), which
// isn't supported by old phone GPUs.
if (!families.apple[3] && !families.mac[1] && !families.macCatalyst[1])
return 1;
const int checkmsaa[] = {32, 16, 8, 4, 2};
for (int samples : checkmsaa)
{