The [CAMetalLayer nextDrawable] issue

Originator:nater.hat
Number:rdar://21652008 Date Originated:2 July 2015
Status:Open Resolved:
Product:OS X SDK Product Version:10.11 Beta 2
Classification:Bug Reproducible:100%
 
Summary:
When running the mac app using the Metal framework and trying to get the next drawable buffer ([CAMetalLayer nextDrawable]), the framework pass

Steps to Reproduce:
1. Setup CVDisplayLink for timer
2. Setup Device
3. Setup CAMetalLayer
4. Call CAMetalLayer nextDrawable 

Expected Results:
I expected [CAMetalLayer nextDrawable] to successful bring back id<CAMetalDrawable> every time.

Actual Results:
Actual result is the [CAMetalLayer nextDrawable] stops passing back a id<CAMetalDrawable> after 3 three successful tries.

Version:
Xcode: 7.0 beta (7A121l)
OSX SDK: 10.11

Additional step: part of step 3, I added/set the layer to the NSView.

If the layer is not added to the NSView, the drawable doesn't complain. However whenever add to the drawing layer, the next drawable stop working.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!