Metal · IOS API REFERENCE
MTLTextureDescriptor
class · iOS 8.0+ · SDK 27.1
class MTLTextureDescriptor
Members (36)
static · iOS 8.0+texture2DDescriptor
TypeScriptstatic texture2DDescriptor(pixelFormat: MTLPixelFormat, width: number, height: number, mipmapped: boolean): MTLTextureDescriptor
Swift declarationclass func texture2DDescriptor(pixelFormat: MTLPixelFormat, width: Int, height: Int, mipmapped: Bool) -> MTLTextureDescriptor
static · iOS 12.0+textureBufferDescriptor
TypeScriptstatic textureBufferDescriptor(pixelFormat: MTLPixelFormat, width: number, resourceOptions: MTLResourceOptions, usage: MTLTextureUsage): MTLTextureDescriptor
Swift declarationclass func textureBufferDescriptor(with pixelFormat: MTLPixelFormat, width: Int, resourceOptions: MTLResourceOptions = [], usage: MTLTextureUsage) -> MTLTextureDescriptor
static · iOS 8.0+textureCubeDescriptor
TypeScriptstatic textureCubeDescriptor(pixelFormat: MTLPixelFormat, size: number, mipmapped: boolean): MTLTextureDescriptor
Swift declarationclass func textureCubeDescriptor(pixelFormat: MTLPixelFormat, size: Int, mipmapped: Bool) -> MTLTextureDescriptor
initinit
TypeScriptstatic init(): MTLTextureDescriptor
Swift declarationinit()
get · iOS 12.0+allowGPUOptimizedContents
TypeScriptget allowGPUOptimizedContents(): boolean
Swift declarationvar allowGPUOptimizedContents: Bool { get set }
set · iOS 12.0+allowGPUOptimizedContents
TypeScriptset allowGPUOptimizedContents(value: boolean)
Swift declarationvar allowGPUOptimizedContents: Bool { get set }
get · iOS 8.0+arrayLength
TypeScriptget arrayLength(): number
Swift declarationvar arrayLength: Int { get set }
set · iOS 8.0+arrayLength
TypeScriptset arrayLength(value: number)
Swift declarationvar arrayLength: Int { get set }
get · iOS 15.0+compressionType
TypeScriptget compressionType(): MTLTextureCompressionType
Swift declarationvar compressionType: MTLTextureCompressionType { get set }
set · iOS 15.0+compressionType
TypeScriptset compressionType(value: MTLTextureCompressionType)
Swift declarationvar compressionType: MTLTextureCompressionType { get set }
get · iOS 9.0+cpuCacheMode
TypeScriptget cpuCacheMode(): MTLCPUCacheMode
Swift declarationvar cpuCacheMode: MTLCPUCacheMode { get set }
set · iOS 9.0+cpuCacheMode
TypeScriptset cpuCacheMode(value: MTLCPUCacheMode)
Swift declarationvar cpuCacheMode: MTLCPUCacheMode { get set }
get · iOS 8.0+depth
TypeScriptget depth(): number
Swift declarationvar depth: Int { get set }
set · iOS 8.0+depth
TypeScriptset depth(value: number)
Swift declarationvar depth: Int { get set }
get · iOS 13.0+hazardTrackingMode
TypeScriptget hazardTrackingMode(): MTLHazardTrackingMode
Swift declarationvar hazardTrackingMode: MTLHazardTrackingMode { get set }
set · iOS 13.0+hazardTrackingMode
TypeScriptset hazardTrackingMode(value: MTLHazardTrackingMode)
Swift declarationvar hazardTrackingMode: MTLHazardTrackingMode { get set }
get · iOS 8.0+height
TypeScriptget height(): number
Swift declarationvar height: Int { get set }
set · iOS 8.0+height
TypeScriptset height(value: number)
Swift declarationvar height: Int { get set }
get · iOS 8.0+mipmapLevelCount
TypeScriptget mipmapLevelCount(): number
Swift declarationvar mipmapLevelCount: Int { get set }
set · iOS 8.0+mipmapLevelCount
TypeScriptset mipmapLevelCount(value: number)
Swift declarationvar mipmapLevelCount: Int { get set }
get · iOS 8.0+pixelFormat
TypeScriptget pixelFormat(): MTLPixelFormat
Swift declarationvar pixelFormat: MTLPixelFormat { get set }
set · iOS 8.0+pixelFormat
TypeScriptset pixelFormat(value: MTLPixelFormat)
Swift declarationvar pixelFormat: MTLPixelFormat { get set }
get · iOS 8.0+resourceOptions
TypeScriptget resourceOptions(): MTLResourceOptions
Swift declarationvar resourceOptions: MTLResourceOptions { get set }
set · iOS 8.0+resourceOptions
TypeScriptset resourceOptions(value: MTLResourceOptions)
Swift declarationvar resourceOptions: MTLResourceOptions { get set }
get · iOS 8.0+sampleCount
TypeScriptget sampleCount(): number
Swift declarationvar sampleCount: Int { get set }
set · iOS 8.0+sampleCount
TypeScriptset sampleCount(value: number)
Swift declarationvar sampleCount: Int { get set }
get · iOS 9.0+storageMode
TypeScriptget storageMode(): MTLStorageMode
Swift declarationvar storageMode: MTLStorageMode { get set }
set · iOS 9.0+storageMode
TypeScriptset storageMode(value: MTLStorageMode)
Swift declarationvar storageMode: MTLStorageMode { get set }
get · iOS 13.0+swizzle
TypeScriptget swizzle(): MTLTextureSwizzleChannels
Swift declarationvar swizzle: MTLTextureSwizzleChannels { get set }
set · iOS 13.0+swizzle
TypeScriptset swizzle(value: MTLTextureSwizzleChannels)
Swift declarationvar swizzle: MTLTextureSwizzleChannels { get set }
get · iOS 8.0+textureType
TypeScriptget textureType(): MTLTextureType
Swift declarationvar textureType: MTLTextureType { get set }
set · iOS 8.0+textureType
TypeScriptset textureType(value: MTLTextureType)
Swift declarationvar textureType: MTLTextureType { get set }
get · iOS 9.0+usage
TypeScriptget usage(): MTLTextureUsage
Swift declarationvar usage: MTLTextureUsage { get set }
set · iOS 9.0+usage
TypeScriptset usage(value: MTLTextureUsage)
Swift declarationvar usage: MTLTextureUsage { get set }
get · iOS 8.0+width
TypeScriptget width(): number
Swift declarationvar width: Int { get set }
set · iOS 8.0+width
TypeScriptset width(value: number)
Swift declarationvar width: Int { get set }
Skipped declarations
No declarations were skipped in this snapshot.
All Metal types →