mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(Metal) Cleanups - turn function static
This commit is contained in:
parent
5d2a75d782
commit
b16f526540
@ -52,13 +52,12 @@ typedef NS_ENUM(NSUInteger, RPixelFormat)
|
||||
RPixelFormatB5G6R5Unorm,
|
||||
|
||||
RPixelFormatBGRA8Unorm,
|
||||
RPixelFormatBGRX8Unorm, // RetroArch XRGB
|
||||
RPixelFormatBGRX8Unorm, /* RetroArch XRGB */
|
||||
|
||||
RPixelFormatCount,
|
||||
};
|
||||
|
||||
extern NSUInteger RPixelFormatToBPP(RPixelFormat format);
|
||||
extern NSString *NSStringFromRPixelFormat(RPixelFormat format);
|
||||
|
||||
typedef NS_ENUM(NSUInteger, RTextureFilter)
|
||||
{
|
||||
|
@ -33,6 +33,8 @@
|
||||
* COMMON
|
||||
*/
|
||||
|
||||
static NSString *RPixelStrings[RPixelFormatCount];
|
||||
|
||||
NSUInteger RPixelFormatToBPP(RPixelFormat format)
|
||||
{
|
||||
switch (format)
|
||||
@ -51,9 +53,7 @@ NSUInteger RPixelFormatToBPP(RPixelFormat format)
|
||||
}
|
||||
}
|
||||
|
||||
static NSString *RPixelStrings[RPixelFormatCount];
|
||||
|
||||
NSString *NSStringFromRPixelFormat(RPixelFormat format)
|
||||
static NSString *NSStringFromRPixelFormat(RPixelFormat format)
|
||||
{
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
|
Loading…
x
Reference in New Issue
Block a user