MPSImageConversion(3) | MetalPerformanceShaders.framework | MPSImageConversion(3) |
MPSImageConversion
#import <MPSImageConversion.h>
Inherits MPSUnaryImageKernel.
(nonnull instancetype) -
initWithDevice:srcAlpha:destAlpha:backgroundColor:conversionInfo:
MPSAlphaType sourceAlpha
MPSAlphaType destinationAlpha
MPSImageConversions.h MetalPerformanceShaders.framework
Copyright:
The MPSImageConversion filter performs a conversion from source to destination
Create a converter that can convert texture colorspace, alpha and texture format Create a converter that can convert texture colorspace, alpha and MTLPixelFormat. Optimized cases exist for NULL color space converter and no alpha conversion.
Parameters:
Returns:
Premultiplication description for the destinationAlpha texture Colorspace conversion operations produce non-premultiplied data. Use this property to tag cases where premultiplied results are required. If MPSPixelAlpha_AlphaIsOne is used, the alpha channel will be set to 1. Default: MPSPixelAlpha_AlphaIsOne
Premultiplication description for the source texture Most colorspace conversion operations can not work directly on premultiplied data. Use this property to tag premultiplied data so that the source texture can be unpremultiplied prior to application of these transforms. Default: MPSPixelAlpha_AlphaIsOne
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Mon Jul 9 2018 | Version MetalPerformanceShaders-119.3 |