Contents

init(size:pixelFormat:)

Initializes an empty texture with a specific size and format.

Declaration

init(size: CGSize, pixelFormat format: Int32)

Parameters

Return Value

An empty mutable texture.

Discussion

You must call the modifyPixelData(_:) method at least once before using this texture.

See Also

Creating an Empty Mutable Texture