d-metal-binding ~master (2026-08-26T11:27:33.1656625)
Dub
Repo
MTLTextureDescriptor.texture2DDescriptorWithPixelFormat
metal
texture
MTLTextureDescriptor
Creates a texture descriptor object for a 2D texture.
class
MTLTextureDescriptor
@
nogc
nothrow static
@
selector
("texture2DDescriptorWithPixelFormat:width:height:mipmapped:")
MTLTextureDescriptor
texture2DDescriptorWithPixelFormat
(
MTLPixelFormat
,
NSUInteger
width
,
NSUInteger
height
,
BOOL
mipmapped
)
Meta
Source
See Implementation
metal
texture
MTLTextureDescriptor
functions
allowGPUOptimizedContents
arrayLength
cpuCacheMode
depth
hazardTrackingMode
height
initialize
mipmapLevelCount
pixelFormat
resourceOptions
sampleCount
storageMode
swizzle
textureType
usage
width
mixins
__anonymous
static functions
alloc
texture2DDescriptorWithPixelFormat
textureBufferDescriptorWithPixelFormat
textureCubeDescriptorWithPixelFormat
Creates a texture descriptor object for a 2D texture.