SwiftstructRealityFoundation
struct RealityKit.TextureResource.Format
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 9
- func
static color(_: RealityKit.TextureResource.Format.ColorSpace, pixelFormat: MTLPixelFormat, compressionType: RealityKit.TextureResource.Format.CompressionType) -> RealityKit.TextureResource.Format - func
static color(_: RealityKit.TextureResource.Format.ColorSpace, pixelFormat: MTLPixelFormat) -> RealityKit.TextureResource.Format - func
static normal(_: RealityKit.TextureResource.Format.NormalEncoding, pixelFormat: MTLPixelFormat) -> RealityKit.TextureResource.Format - func
static raw(pixelFormat: MTLPixelFormat) -> RealityKit.TextureResource.Format - field
var compressionType: RealityKit.TextureResource.Format.CompressionType?+0x13 - field
var gamut: REColorGamut?+0x10 - field
var normalEncoding: RealityKit.TextureResource.Format.NormalEncoding?+0x12 - field
var pixelFormat: MTLPixelFormat+0x8 - field
var semantic: RealityKit.TextureResource.Semantic+0x0
Header
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 }