mipmapLevelCount
TypeScriptget mipmapLevelCount(): Promise<number>Swift declarationvar mipmapLevelCount: IntThe number of mipmap levels for the texture.
struct · iOS 18.0+ · SDK 27.1
struct DescriptorAn object that you use to configure new `LowLevelTexture` objects.
get mipmapLevelCount(): Promise<number>Swift declarationvar mipmapLevelCount: IntThe number of mipmap levels for the texture.
setMipmapLevelCount(value: number): Promise<void>Swift declarationvar mipmapLevelCount: IntThe number of mipmap levels for the texture.
get arrayLength(): Promise<number>Swift declarationvar arrayLength: IntThe number of array elements for this texture.
setArrayLength(value: number): Promise<void>Swift declarationvar arrayLength: IntThe number of array elements for this texture.
get pixelFormat(): Promise<_Metal_MTLPixelFormat>Swift declarationvar pixelFormat: MTLPixelFormatThe size and bit layout of all pixels in the texture.
setPixelFormat(value: _Metal_MTLPixelFormat): Promise<void>Swift declarationvar pixelFormat: MTLPixelFormatThe size and bit layout of all pixels in the texture.
static initTextureTypePixelFormatWidthHeightDepthMipmapLevelCountArrayLengthTextureUsageSwizzle(textureType?: _Metal_MTLTextureType, pixelFormat?: _Metal_MTLPixelFormat, width?: number, height?: number, depth?: number, mipmapLevelCount?: number, arrayLength?: number, textureUsage?: _Metal_MTLTextureUsage, swizzle?: _Metal_MTLTextureSwizzleChannels): Promise<LowLevelTexture_Descriptor>Swift declarationinit(textureType: MTLTextureType = .type2D, pixelFormat: MTLPixelFormat = .invalid, width: Int = 0, height: Int = 0, depth: Int = 1, mipmapLevelCount: Int = 1, arrayLength: Int = 1, textureUsage: MTLTextureUsage = .unknown, swizzle: MTLTextureSwizzleChannels = .init(red: .red, green: .green, blue: .blue, alpha: .alpha))Creates a descriptor for a low-level texture. To create a new ``LowLevelTexture``, first create a `LowLevelTexture.Descriptor` object and set its property values. Then, call ``LowLevelTexture/init(descriptor:)``.
get textureType(): Promise<_Metal_MTLTextureType>Swift declarationvar textureType: MTLTextureTypeThe dimension and arrangement of texture image data.
setTextureType(value: _Metal_MTLTextureType): Promise<void>Swift declarationvar textureType: MTLTextureTypeThe dimension and arrangement of texture image data.
get textureUsage(): Promise<_Metal_MTLTextureUsage>Swift declarationvar textureUsage: MTLTextureUsageAn enumeration for the various options that determine how you can use a texture.
setTextureUsage(value: _Metal_MTLTextureUsage): Promise<void>Swift declarationvar textureUsage: MTLTextureUsageAn enumeration for the various options that determine how you can use a texture.
get depth(): Promise<number>Swift declarationvar depth: IntThe depth of the texture image for the base level mipmap, in pixels.
setDepth(value: number): Promise<void>Swift declarationvar depth: IntThe depth of the texture image for the base level mipmap, in pixels.
get width(): Promise<number>Swift declarationvar width: IntThe width of the texture image for the base level mipmap, in pixels.
setWidth(value: number): Promise<void>Swift declarationvar width: IntThe width of the texture image for the base level mipmap, in pixels.
get height(): Promise<number>Swift declarationvar height: IntThe height of the texture image for the base level mipmap, in pixels.
setHeight(value: number): Promise<void>Swift declarationvar height: IntThe height of the texture image for the base level mipmap, in pixels.
get swizzle(): Promise<_Metal_MTLTextureSwizzleChannels>Swift declarationvar swizzle: MTLTextureSwizzleChannelsThe pattern you want the GPU to apply to pixels when you read or sample pixels from the texture.
setSwizzle(value: _Metal_MTLTextureSwizzleChannels): Promise<void>Swift declarationvar swizzle: MTLTextureSwizzleChannelsThe pattern you want the GPU to apply to pixels when you read or sample pixels from the texture.
static init(mtlDescriptor: _Metal_MTLTextureDescriptor): Promise<LowLevelTexture_Descriptor>Swift declarationinit(_ mtlDescriptor: MTLTextureDescriptor)Create from a Metal texture descriptor.
No declarations were skipped in this snapshot.