Contents

normal(_:pixelFormat:)

Indicates that a texture is a normal map.

Declaration

static func normal(_ encoding: TextureResource.Format.NormalEncoding, pixelFormat: MTLPixelFormat) -> TextureResource.Format

Discussion

The created texture uses the TextureResource.Semantic.normal semantic.

See Also

Creating the format