d-metal-binding v1.0.4 (2023-03-15T23:34:54Z)
Dub
Repo
MTLTextureDescriptor.texture2DDescriptorWithPixelFormat
metal
texture
MTLTextureDescriptor
Creates a texture descriptor object for a 2D texture.
class
MTLTextureDescriptor
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
mipmapLevelCount
pixelFormat
resourceOptions
sampleCount
storageMode
swizzle
textureType
usage
width
static functions
texture2DDescriptorWithPixelFormat
textureBufferDescriptorWithPixelFormat
textureCubeDescriptorWithPixelFormat
Creates a texture descriptor object for a 2D texture.