30 lines
742 B
Objective-C
30 lines
742 B
Objective-C
#if MLN_RENDER_BACKEND_METAL
|
|
|
|
#import <MetalKit/MetalKit.h>
|
|
|
|
@interface MLNBackendResource : NSObject
|
|
|
|
@property (nonatomic, strong) MTKView *mtkView;
|
|
@property (nonatomic, strong) id<MTLDevice> device;
|
|
@property (nonatomic, strong) MTLRenderPassDescriptor *renderPassDescriptor;
|
|
@property (nonatomic, strong) id<MTLCommandBuffer> commandBuffer;
|
|
|
|
- (instancetype)initWithMTKView:(MTKView *)mtkView
|
|
device:(id<MTLDevice>)device
|
|
renderPassDescriptor:(MTLRenderPassDescriptor *)renderPassDescriptor
|
|
commandBuffer:(id<MTLCommandBuffer>)commandBuffer;
|
|
|
|
@end
|
|
|
|
#else
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "MLNFoundation.h"
|
|
|
|
MLN_EXPORT
|
|
@interface MLNBackendResource : NSObject
|
|
|
|
@end
|
|
|
|
#endif
|