SwiftstructRealityFoundation

struct RealityKit.TextureResource.Format

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 9

  1. funcstatic color(_: RealityKit.TextureResource.Format.ColorSpace, pixelFormat: MTLPixelFormat, compressionType: RealityKit.TextureResource.Format.CompressionType) -> RealityKit.TextureResource.Format
  2. funcstatic color(_: RealityKit.TextureResource.Format.ColorSpace, pixelFormat: MTLPixelFormat) -> RealityKit.TextureResource.Format
  3. funcstatic normal(_: RealityKit.TextureResource.Format.NormalEncoding, pixelFormat: MTLPixelFormat) -> RealityKit.TextureResource.Format
  4. funcstatic raw(pixelFormat: MTLPixelFormat) -> RealityKit.TextureResource.Format
  5. fieldvar compressionType: RealityKit.TextureResource.Format.CompressionType?+0x13
  6. fieldvar gamut: REColorGamut?+0x10
  7. fieldvar normalEncoding: RealityKit.TextureResource.Format.NormalEncoding?+0x12
  8. fieldvar pixelFormat: MTLPixelFormat+0x8
  9. fieldvar semantic: RealityKit.TextureResource.Semantic+0x0
struct Format {
    enum ColorSpace {
        case displayP3
    }
    enum CompressionType {
        case lossless
        case lossy
    }
    enum NormalEncoding {
        case xy
        case wy
    }
    var semantic: RealityKit.TextureResource.Semantic
    var pixelFormat: __C.MTLPixelFormat
    var gamut: __C.REColorGamut?
    var normalEncoding: RealityKit.TextureResource.Format.NormalEncoding?
    var compressionType: RealityKit.TextureResource.Format.CompressionType?

    static func raw(pixelFormat: __C.MTLPixelFormat) -> RealityKit.TextureResource.Format
    static func color(_: RealityKit.TextureResource.Format.ColorSpace, pixelFormat: __C.MTLPixelFormat, compressionType: RealityKit.TextureResource.Format.CompressionType) -> RealityKit.TextureResource.Format
    static func color(_: RealityKit.TextureResource.Format.ColorSpace, pixelFormat: __C.MTLPixelFormat) -> RealityKit.TextureResource.Format
    static func normal(_: RealityKit.TextureResource.Format.NormalEncoding, pixelFormat: __C.MTLPixelFormat) -> RealityKit.TextureResource.Format
}