(Metal) Cleanups - turn function static

This commit is contained in:
twinaphex 2021-03-21 18:10:55 +01:00
parent 5d2a75d782
commit b16f526540
2 changed files with 4 additions and 5 deletions

View File

@ -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)
{

View File

@ -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, ^{