File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,10 @@ -(id) init
9191 _loadingQueue = dispatch_queue_create (" org.cocos2d.texturecacheloading" , NULL );
9292 _dictQueue = dispatch_queue_create (" org.cocos2d.texturecachedict" , NULL );
9393
94- # warning TODO
94+ // Skip the GL context sharegroup code for Metal.
9595 if ([CCConfiguration sharedConfiguration ].graphicsAPI == CCGraphicsAPIMetal) return self;
9696
9797#if !__CC_PLATFORM_ANDROID
98- #warning TODO might not be a GL view.
9998 CCGLView *view = (CCGLView*)[[CCDirector sharedDirector ] view ];
10099 NSAssert (view, @" Do not initialize the TextureCache before the Director" );
101100#endif
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ - (void) setupCocos2dWithOptions:(NSDictionary*)config
178178 break ;
179179#if __CC_METAL_SUPPORTED_AND_ENABLED
180180 case CCGraphicsAPIMetal:
181- # warning TODO
181+ // TODO support MSAA, depth buffers, etc.
182182 ccview = [[CCMetalView alloc ] initWithFrame: bounds];
183183 break ;
184184#endif
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ - (id) initWithFrame:(CGRect)frame
3939 {
4040 _context = [[CCMetalContext alloc ] init ];
4141
42- # warning Temporary. Move into CCRenderDispatch?
42+ // TODO Move into CCRenderDispatch to support threaded rendering with Metal ?
4343 [CCMetalContext setCurrentContext: _context];
4444
4545 _queuedFramesSemaphore = dispatch_semaphore_create (CC_METAL_MAX_QUEUED_FRAMES);
You can’t perform that action at this time.
0 commit comments