DrawReturnValue

@objcMembers
@objc(PESDKDrawReturnValue)
open class DrawReturnValue : NSObject

A class containing the created MTLCommandBuffer and the target CGColorSpace that were used to draw the image with a Metal context.

  • The command buffer used to render the image.

    Declaration

    Swift

    public let commandBuffer: MTLCommandBuffer
  • The target color space used to render the image.

    Declaration

    Swift

    public let colorSpace: CGColorSpace?
  • Creates a new return value object.

    Declaration

    Swift

    public init(commandBuffer: MTLCommandBuffer, colorSpace: CGColorSpace?)

    Parameters

    commandBuffer

    The command buffer used to render the image.

    colorSpace

    The target color space used to render the image.