Core Image refuses 32-bit float context with Metal (Mac)

Originator:raphael
Number:rdar://25256727 Date Originated:19-Mar-2016 06:04 PM
Status:Open Resolved:
Product:OS X SDK Product Version:10.11.4 Beta (15E64a)
Classification:Enhancement Reproducible:Always
 
When creating a Core Image context with the following specification:

	id opts = @{kCIContextOutputColorSpace: (id)HYRenderContext.defaultWorkingColorSpace,
				kCIContextWorkingFormat: @(kCIFormatRGBAf), // require internal 32-bit precision
				kCIContextUseSoftwareRenderer: @NO
				};
	
	self.CIContext = [CIContext contextWithMTLDevice:self.device options:opts];

The following output is printed to the console by the Core Image framework:

	CIContext workingformat must be kCIFormatBGRA8, kCIFormatRGBA8, kCIFormatRGBAh or nil. Ignoring request for RGBAf.

The documentation specifically mentions that RGBAf is supported (and it's useful for high precision needs).

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!