metal: fix a couple compiler warnings

This commit is contained in:
Alex Szpakowski
2021-12-24 18:04:11 -04:00
parent 7eb8366b2d
commit dab174b120
3 changed files with 32 additions and 15 deletions
+2 -1
View File
@@ -36,13 +36,14 @@ class Metal
{
public:
struct PixelFormatDesc
struct API_AVAILABLE(macos(10.15), ios(13.0)) PixelFormatDesc
{
MTLPixelFormat format;
bool swizzled = false;
MTLTextureSwizzleChannels swizzle;
};
API_AVAILABLE(macos(10.15), ios(13.0))
static PixelFormatDesc convertPixelFormat(PixelFormat format, bool &isSRGB);
}; // Metal