2018-06-20 21:29:53 -07:00
|
|
|
//
|
|
|
|
// RView.m
|
|
|
|
// MetalRenderer
|
|
|
|
//
|
|
|
|
// Created by Stuart Carnie on 5/31/18.
|
|
|
|
// Copyright © 2018 Stuart Carnie. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2018-06-29 22:57:48 -07:00
|
|
|
#import "View.h"
|
2018-06-20 21:29:53 -07:00
|
|
|
#import "RendererCommon.h"
|
|
|
|
|
|
|
|
@implementation ViewDescriptor
|
|
|
|
|
|
|
|
- (instancetype)init
|
|
|
|
{
|
|
|
|
self = [super init];
|
2018-07-03 22:31:51 -07:00
|
|
|
if (self)
|
|
|
|
{
|
2018-06-20 21:29:53 -07:00
|
|
|
_format = RPixelFormatBGRA8Unorm;
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *)debugDescription
|
|
|
|
{
|
|
|
|
return [NSString stringWithFormat:@"( format = %@, frame = %@ )",
|
|
|
|
NSStringFromRPixelFormat(_format),
|
|
|
|
NSStringFromSize(_size)];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|