Texture

public struct Texture

Undocumented

  • Undocumented

    See more

    Declaration

    Swift

    public enum TextureError : Error
  • Undocumented

    Declaration

    Swift

    public static func buffer(from image: CGImage, at size: CGSize?, bits: LiveColor.Bits? = nil) -> CVPixelBuffer?
  • Undocumented

    Declaration

    Swift

    public typealias _Image = UIImage
  • Undocumented

    Declaration

    Swift

    public static func buffer(from image: _Image, bits: LiveColor.Bits) -> CVPixelBuffer?
  • Undocumented

    See more

    Declaration

    Swift

    public enum ImagePlacement
  • Undocumented

    Declaration

    Swift

    public static func resize(_ image: UIImage, to size: CGSize, placement: ImagePlacement = .fill) -> UIImage
  • Undocumented

    Declaration

    Swift

    public static func makeTexture(from pixelBuffer: CVPixelBuffer, with commandBuffer: MTLCommandBuffer, force8bit: Bool = false, on metalDevice: MTLDevice) throws -> MTLTexture
  • Undocumented

    Declaration

    Swift

    public static func makeTexture(from image: CGImage, with commandBuffer: MTLCommandBuffer, on metalDevice: MTLDevice) throws -> MTLTexture
  • Undocumented

    Declaration

    Swift

    public static func mipmap(texture: MTLTexture, with commandBuffer: MTLCommandBuffer) throws
  • Undocumented

    Declaration

    Swift

    public static func emptyTexture(size: CGSize, bits: LiveColor.Bits, on metalDevice: MTLDevice, write: Bool = false) throws -> MTLTexture
  • Undocumented

    Declaration

    Swift

    public static func emptyTextureCube(size: Int, bits: LiveColor.Bits, on metalDevice: MTLDevice) throws -> MTLTexture
  • Undocumented

    Declaration

    Swift

    public static func emptyTexture3D(at resolution: Resolution3D, bits: LiveColor.Bits, on metalDevice: MTLDevice) throws -> MTLTexture
  • Undocumented

    Declaration

    Swift

    public static func copyTexture<N>(from node: N, on metalDevice: MTLDevice, in commandQueue: MTLCommandQueue) throws -> MTLTexture where N : NODE
  • Undocumented

    Declaration

    Swift

    public static func copy(texture: MTLTexture, on metalDevice: MTLDevice, in commandQueue: MTLCommandQueue) throws -> MTLTexture
  • Undocumented

    Declaration

    Swift

    public static func mergeTiles2d(textures: [[MTLTexture]], on metalDevice: MTLDevice, in commandQueue: MTLCommandQueue) throws -> MTLTexture
  • Undocumented

    Declaration

    Swift

    public static func mergeTiles3d(textures: [[[MTLTexture]]], on metalDevice: MTLDevice, in commandQueue: MTLCommandQueue) throws -> MTLTexture
  • Undocumented

    Declaration

    Swift

    public static func copy3D(texture: MTLTexture, on metalDevice: MTLDevice, in commandQueue: MTLCommandQueue) throws -> MTLTexture
  • Undocumented

    Declaration

    Swift

    public static func makeMultiTexture(from textures: [MTLTexture], with commandBuffer: MTLCommandBuffer, on metalDevice: MTLDevice, in3D: Bool = false) throws -> MTLTexture
  • Undocumented

    Declaration

    Swift

    public static func ciImage(from texture: MTLTexture, colorSpace: LiveColor.Space) -> CIImage?
  • Undocumented

    Declaration

    Swift

    public static func cgImage(from ciImage: CIImage, at size: CGSize, colorSpace: LiveColor.Space, bits: LiveColor.Bits) -> CGImage?
  • Undocumented

    Declaration

    Swift

    public static func image(from cgImage: CGImage, at size: CGSize) -> _Image
  • Undocumented

    Declaration

    Swift

    public static func image(from texture: MTLTexture, colorSpace: LiveColor.Space) -> _Image?
  • Undocumented

    Declaration

    Swift

    public static func texture(from image: _Image, on metalDevice: MTLDevice, in commandQueue: MTLCommandQueue) -> MTLTexture?
  • Undocumented

    Declaration

    Swift

    public static func pixelBuffer(from image: _Image, colorSpace: LiveColor.Space, bits: LiveColor.Bits) throws -> CVPixelBuffer
  • Undocumented

    Declaration

    Swift

    public static func pixelBuffer(from cgImage: CGImage, colorSpace: LiveColor.Space, bits: LiveColor.Bits) throws -> CVPixelBuffer
  • Undocumented

    Declaration

    Swift

    public static func raw8(texture: MTLTexture) throws -> [UInt8]
  • Undocumented

    Declaration

    Swift

    public static func rawCopy8(texture: MTLTexture, on metalDevice: MTLDevice, in commandQueue: MTLCommandQueue) throws -> [UInt8]
  • Undocumented

    Declaration

    Swift

    public static func raw3d8(texture: MTLTexture) throws -> [UInt8]
  • Undocumented

    Declaration

    Swift

    public static func rawCopy3d8(texture: MTLTexture, on metalDevice: MTLDevice, in commandQueue: MTLCommandQueue) throws -> [UInt8]
  • Undocumented

    Declaration

    Swift

    public static func raw16(texture: MTLTexture) throws -> [Float]
  • Undocumented

    Declaration

    Swift

    public static func raw3d16(texture: MTLTexture) throws -> [Float]
  • Undocumented

    Declaration

    Swift

    public static func raw32(texture: MTLTexture) throws -> [float4]
  • Undocumented

    Declaration

    Swift

    public static func raw3d32(texture: MTLTexture) throws -> [float4]
  • Undocumented

    Declaration

    Swift

    public static func rawNormalized(texture: MTLTexture, bits: LiveColor.Bits) throws -> [CGFloat]
  • Undocumented

    Declaration

    Swift

    public static func rawNormalizedCopy(texture: MTLTexture, bits: LiveColor.Bits, on metalDevice: MTLDevice, in commandQueue: MTLCommandQueue) throws -> [CGFloat]
  • Undocumented

    Declaration

    Swift

    public static func rawNormalized3d(texture: MTLTexture, bits: LiveColor.Bits) throws -> [CGFloat]
  • Undocumented

    Declaration

    Swift

    public static func rawNormalizedCopy3d(texture: MTLTexture, bits: LiveColor.Bits, on metalDevice: MTLDevice, in commandQueue: MTLCommandQueue) throws -> [CGFloat]