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
91
91
_loadingQueue = dispatch_queue_create (" org.cocos2d.texturecacheloading" , NULL );
92
92
_dictQueue = dispatch_queue_create (" org.cocos2d.texturecachedict" , NULL );
93
93
94
- # warning TODO
94
+ // Skip the GL context sharegroup code for Metal.
95
95
if ([CCConfiguration sharedConfiguration ].graphicsAPI == CCGraphicsAPIMetal) return self;
96
96
97
97
#if !__CC_PLATFORM_ANDROID
98
- #warning TODO might not be a GL view.
99
98
CCGLView *view = (CCGLView*)[[CCDirector sharedDirector ] view ];
100
99
NSAssert (view, @" Do not initialize the TextureCache before the Director" );
101
100
#endif
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ - (void) setupCocos2dWithOptions:(NSDictionary*)config
178
178
break ;
179
179
#if __CC_METAL_SUPPORTED_AND_ENABLED
180
180
case CCGraphicsAPIMetal:
181
- # warning TODO
181
+ // TODO support MSAA, depth buffers, etc.
182
182
ccview = [[CCMetalView alloc ] initWithFrame: bounds];
183
183
break ;
184
184
#endif
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ - (id) initWithFrame:(CGRect)frame
39
39
{
40
40
_context = [[CCMetalContext alloc ] init ];
41
41
42
- # warning Temporary. Move into CCRenderDispatch?
42
+ // TODO Move into CCRenderDispatch to support threaded rendering with Metal ?
43
43
[CCMetalContext setCurrentContext: _context];
44
44
45
45
_queuedFramesSemaphore = dispatch_semaphore_create (CC_METAL_MAX_QUEUED_FRAMES);
You can’t perform that action at this time.
0 commit comments