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