One Logo Pool Ball
Metal · IOS API REFERENCE

MTLTextureDescriptor

class · iOS 8.0+ · SDK 27.1

class MTLTextureDescriptor

Members (36)

static · iOS 8.0+

texture2DDescriptor

TypeScript
static texture2DDescriptor(pixelFormat: MTLPixelFormat, width: number, height: number, mipmapped: boolean): MTLTextureDescriptor
Swift declaration
class func texture2DDescriptor(pixelFormat: MTLPixelFormat, width: Int, height: Int, mipmapped: Bool) -> MTLTextureDescriptor
static · iOS 12.0+

textureBufferDescriptor

TypeScript
static textureBufferDescriptor(pixelFormat: MTLPixelFormat, width: number, resourceOptions: MTLResourceOptions, usage: MTLTextureUsage): MTLTextureDescriptor
Swift declaration
class func textureBufferDescriptor(with pixelFormat: MTLPixelFormat, width: Int, resourceOptions: MTLResourceOptions = [], usage: MTLTextureUsage) -> MTLTextureDescriptor
static · iOS 8.0+

textureCubeDescriptor

TypeScript
static textureCubeDescriptor(pixelFormat: MTLPixelFormat, size: number, mipmapped: boolean): MTLTextureDescriptor
Swift declaration
class func textureCubeDescriptor(pixelFormat: MTLPixelFormat, size: Int, mipmapped: Bool) -> MTLTextureDescriptor
init

init

TypeScript
static init(): MTLTextureDescriptor
Swift declaration
init()
get · iOS 12.0+

allowGPUOptimizedContents

TypeScript
get allowGPUOptimizedContents(): boolean
Swift declaration
var allowGPUOptimizedContents: Bool { get set }
set · iOS 12.0+

allowGPUOptimizedContents

TypeScript
set allowGPUOptimizedContents(value: boolean)
Swift declaration
var allowGPUOptimizedContents: Bool { get set }
get · iOS 8.0+

arrayLength

TypeScript
get arrayLength(): number
Swift declaration
var arrayLength: Int { get set }
set · iOS 8.0+

arrayLength

TypeScript
set arrayLength(value: number)
Swift declaration
var arrayLength: Int { get set }
get · iOS 15.0+

compressionType

TypeScript
get compressionType(): MTLTextureCompressionType
Swift declaration
var compressionType: MTLTextureCompressionType { get set }
set · iOS 15.0+

compressionType

TypeScript
set compressionType(value: MTLTextureCompressionType)
Swift declaration
var compressionType: MTLTextureCompressionType { get set }
get · iOS 9.0+

cpuCacheMode

TypeScript
get cpuCacheMode(): MTLCPUCacheMode
Swift declaration
var cpuCacheMode: MTLCPUCacheMode { get set }
set · iOS 9.0+

cpuCacheMode

TypeScript
set cpuCacheMode(value: MTLCPUCacheMode)
Swift declaration
var cpuCacheMode: MTLCPUCacheMode { get set }
get · iOS 8.0+

depth

TypeScript
get depth(): number
Swift declaration
var depth: Int { get set }
set · iOS 8.0+

depth

TypeScript
set depth(value: number)
Swift declaration
var depth: Int { get set }
get · iOS 13.0+

hazardTrackingMode

TypeScript
get hazardTrackingMode(): MTLHazardTrackingMode
Swift declaration
var hazardTrackingMode: MTLHazardTrackingMode { get set }
set · iOS 13.0+

hazardTrackingMode

TypeScript
set hazardTrackingMode(value: MTLHazardTrackingMode)
Swift declaration
var hazardTrackingMode: MTLHazardTrackingMode { get set }
get · iOS 8.0+

height

TypeScript
get height(): number
Swift declaration
var height: Int { get set }
set · iOS 8.0+

height

TypeScript
set height(value: number)
Swift declaration
var height: Int { get set }
get · iOS 8.0+

mipmapLevelCount

TypeScript
get mipmapLevelCount(): number
Swift declaration
var mipmapLevelCount: Int { get set }
set · iOS 8.0+

mipmapLevelCount

TypeScript
set mipmapLevelCount(value: number)
Swift declaration
var mipmapLevelCount: Int { get set }
get · iOS 8.0+

pixelFormat

TypeScript
get pixelFormat(): MTLPixelFormat
Swift declaration
var pixelFormat: MTLPixelFormat { get set }
set · iOS 8.0+

pixelFormat

TypeScript
set pixelFormat(value: MTLPixelFormat)
Swift declaration
var pixelFormat: MTLPixelFormat { get set }
get · iOS 8.0+

resourceOptions

TypeScript
get resourceOptions(): MTLResourceOptions
Swift declaration
var resourceOptions: MTLResourceOptions { get set }
set · iOS 8.0+

resourceOptions

TypeScript
set resourceOptions(value: MTLResourceOptions)
Swift declaration
var resourceOptions: MTLResourceOptions { get set }
get · iOS 8.0+

sampleCount

TypeScript
get sampleCount(): number
Swift declaration
var sampleCount: Int { get set }
set · iOS 8.0+

sampleCount

TypeScript
set sampleCount(value: number)
Swift declaration
var sampleCount: Int { get set }
get · iOS 9.0+

storageMode

TypeScript
get storageMode(): MTLStorageMode
Swift declaration
var storageMode: MTLStorageMode { get set }
set · iOS 9.0+

storageMode

TypeScript
set storageMode(value: MTLStorageMode)
Swift declaration
var storageMode: MTLStorageMode { get set }
get · iOS 13.0+

swizzle

TypeScript
get swizzle(): MTLTextureSwizzleChannels
Swift declaration
var swizzle: MTLTextureSwizzleChannels { get set }
set · iOS 13.0+

swizzle

TypeScript
set swizzle(value: MTLTextureSwizzleChannels)
Swift declaration
var swizzle: MTLTextureSwizzleChannels { get set }
get · iOS 8.0+

textureType

TypeScript
get textureType(): MTLTextureType
Swift declaration
var textureType: MTLTextureType { get set }
set · iOS 8.0+

textureType

TypeScript
set textureType(value: MTLTextureType)
Swift declaration
var textureType: MTLTextureType { get set }
get · iOS 9.0+

usage

TypeScript
get usage(): MTLTextureUsage
Swift declaration
var usage: MTLTextureUsage { get set }
set · iOS 9.0+

usage

TypeScript
set usage(value: MTLTextureUsage)
Swift declaration
var usage: MTLTextureUsage { get set }
get · iOS 8.0+

width

TypeScript
get width(): number
Swift declaration
var width: Int { get set }
set · iOS 8.0+

width

TypeScript
set width(value: number)
Swift declaration
var width: Int { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All Metal types →