SwiftstructDirectResource
TextureDescriptor
struct DirectResource.TextureDescriptor
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolDirectResource.DRCodable
- protocolDirectResource.DRDecodable
- protocolDirectResource.DREncodable
- protocolDirectResource.ResourceMetadata
- protocolSwift.Equatable
Members 13
- field
var allowGPUOptimizedContents: Bool+0x50 - field
var arrayLength: Int+0x20 - field
var compressionType: MTLTextureCompressionType+0x48 - field
var depth: Int+0x10 - field
var height: Int+0x8 - field
var mipmapLevelCount: Int+0x18 - field
var pixelFormat: MTLPixelFormat+0x28 - field
var swizzle: MTLTextureSwizzleChannels+0x40 - field
var textureType: MTLTextureType+0x30 - field
var textureUsage: MTLTextureUsage+0x38 - field
var width: Int+0x0 - init
init(from: MTLTexture) -> DirectResource.TextureDescriptor - init
init() -> DirectResource.TextureDescriptor
Header
struct TextureDescriptor { var width: Swift.Int var height: Swift.Int var depth: Swift.Int var mipmapLevelCount: Swift.Int var arrayLength: Swift.Int var pixelFormat: __C.MTLPixelFormat var textureType: __C.MTLTextureType var textureUsage: __C.MTLTextureUsage var swizzle: __C.MTLTextureSwizzleChannels var compressionType: __C.MTLTextureCompressionType var allowGPUOptimizedContents: Swift.Bool init(from: any __C.MTLTexture) init() }