mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
411bcf8bdd
* includes rgui * shader support This is a work-in-progress and there are some bugs and visual artifacts still to be fixed.
30 lines
570 B
Objective-C
30 lines
570 B
Objective-C
//
|
|
// RView.m
|
|
// MetalRenderer
|
|
//
|
|
// Created by Stuart Carnie on 5/31/18.
|
|
// Copyright © 2018 Stuart Carnie. All rights reserved.
|
|
//
|
|
|
|
#import "RendererCommon.h"
|
|
|
|
@implementation ViewDescriptor
|
|
|
|
- (instancetype)init
|
|
{
|
|
self = [super init];
|
|
if (self) {
|
|
_format = RPixelFormatBGRA8Unorm;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (NSString *)debugDescription
|
|
{
|
|
return [NSString stringWithFormat:@"( format = %@, frame = %@ )",
|
|
NSStringFromRPixelFormat(_format),
|
|
NSStringFromSize(_size)];
|
|
}
|
|
|
|
@end
|