mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
metal: use a fallback for fonts when luminance-alpha isn't supported.
This commit is contained in:
@@ -36,14 +36,13 @@ class Metal
|
||||
{
|
||||
public:
|
||||
|
||||
struct API_AVAILABLE(macos(10.15), ios(13.0)) PixelFormatDesc
|
||||
struct PixelFormatDesc
|
||||
{
|
||||
MTLPixelFormat format;
|
||||
bool swizzled = false;
|
||||
MTLTextureSwizzleChannels swizzle;
|
||||
API_AVAILABLE(macos(10.15), ios(13.0)) MTLTextureSwizzleChannels swizzle;
|
||||
};
|
||||
|
||||
API_AVAILABLE(macos(10.15), ios(13.0))
|
||||
static PixelFormatDesc convertPixelFormat(id<MTLDevice> device, PixelFormat format, bool &isSRGB);
|
||||
|
||||
}; // Metal
|
||||
|
||||
Reference in New Issue
Block a user