src/render/metal/SDL_render_metal.m
changeset 11759 05cdab5a00f8
parent 11755 e9a1b9ea8da0
child 11760 e85aa67038df
equal deleted inserted replaced
11758:c70cf178aacb 11759:05cdab5a00f8
   119     @property (nonatomic, retain) CAMetalLayer *mtllayer;
   119     @property (nonatomic, retain) CAMetalLayer *mtllayer;
   120     @property (nonatomic, retain) MTLRenderPassDescriptor *mtlpassdesc;
   120     @property (nonatomic, retain) MTLRenderPassDescriptor *mtlpassdesc;
   121 @end
   121 @end
   122 
   122 
   123 @implementation METAL_RenderData
   123 @implementation METAL_RenderData
       
   124 	@synthesize beginScene;
       
   125     @synthesize mtldevice;
       
   126     @synthesize mtlcmdqueue;
       
   127     @synthesize mtlcmdbuffer;
       
   128     @synthesize mtlcmdencoder;
       
   129     @synthesize mtllibrary;
       
   130     @synthesize mtlbackbuffer;
       
   131     @synthesize mtlpipelineprims;
       
   132     @synthesize mtlpipelinecopynearest;
       
   133     @synthesize mtlpipelinecopylinear;
       
   134     @synthesize mtlbufclearverts;
       
   135     @synthesize mtllayer;
       
   136     @synthesize mtlpassdesc;
   124 @end
   137 @end
   125 
   138 
   126 @interface METAL_TextureData : NSObject
   139 @interface METAL_TextureData : NSObject
   127     @property (nonatomic, retain) id<MTLTexture> mtltexture;
   140     @property (nonatomic, retain) id<MTLTexture> mtltexture;
   128     @property (nonatomic, retain) NSMutableArray *mtlpipeline;
   141     @property (nonatomic, retain) NSMutableArray *mtlpipeline;
   817         [data.mtlcmdencoder release];
   830         [data.mtlcmdencoder release];
   818         [data.mtlcmdbuffer release];
   831         [data.mtlcmdbuffer release];
   819         [data.mtlcmdqueue release];
   832         [data.mtlcmdqueue release];
   820         for (int i = 0; i < 4; i++) {
   833         for (int i = 0; i < 4; i++) {
   821             [data.mtlpipelineprims[i] release];
   834             [data.mtlpipelineprims[i] release];
   822             [data.mtlpipelinecopy[i] release];
   835             [data.mtlpipelinecopynearest[i] release];
       
   836             [data.mtlpipelinecopylinear[i] release];
   823         }
   837         }
   824         [data.mtlpipelineprims release];
   838         [data.mtlpipelineprims release];
   825         [data.mtlpipelinecopy release];
   839         [data.mtlpipelinecopynearest release];
       
   840         [data.mtlpipelinecopylinear release];
   826         [data.mtlbufclearverts release];
   841         [data.mtlbufclearverts release];
   827         [data.mtllibrary release];
   842         [data.mtllibrary release];
   828         [data.mtldevice release];
   843         [data.mtldevice release];
   829         [data.mtlpassdesc release];
   844         [data.mtlpassdesc release];
   830         [data.mtllayer release];
   845         [data.mtllayer release];