MTLTextureDescriptor

An object that you use to configure new Metal texture objects.

version(D_ObjectiveC)
extern (Objective-C) extern
class MTLTextureDescriptor : NSObject {}

Members

Functions

allowGPUOptimizedContents
BOOL allowGPUOptimizedContents()

A Boolean value indicating whether the GPU is allowed to adjust the texture's contents to improve GPU performance.

allowGPUOptimizedContents
BOOL allowGPUOptimizedContents(BOOL )
Undocumented in source.
arrayLength
NSUInteger arrayLength()

The number of array elements for this texture.

arrayLength
NSUInteger arrayLength(NSUInteger )
Undocumented in source.
cpuCacheMode
MTLCPUCacheMode cpuCacheMode()

The CPU cache mode used for the CPU mapping of the texture.

cpuCacheMode
MTLCPUCacheMode cpuCacheMode(MTLCPUCacheMode )
Undocumented in source.
depth
NSUInteger depth()

The depth of the texture image for the base level mipmap, in pixels.

depth
NSUInteger depth(NSUInteger )
Undocumented in source.
hazardTrackingMode
MTLHazardTrackingMode hazardTrackingMode()

The texture's hazard tracking mode.

hazardTrackingMode
MTLHazardTrackingMode hazardTrackingMode(MTLHazardTrackingMode )
Undocumented in source.
height
NSUInteger height()

The height of the texture image for the base level mipmap, in pixels.

height
NSUInteger height(NSUInteger )
Undocumented in source.
initialize
MTLTextureDescriptor initialize()
Undocumented in source.
mipmapLevelCount
NSUInteger mipmapLevelCount()

The number of mipmap levels for this texture.

mipmapLevelCount
NSUInteger mipmapLevelCount(NSUInteger )
Undocumented in source.
pixelFormat
MTLPixelFormat pixelFormat()

The size and bit layout of all pixels in the texture.

pixelFormat
MTLPixelFormat pixelFormat(MTLPixelFormat )
Undocumented in source.
resourceOptions
MTLResourceOptions resourceOptions()

The behavior of a new memory allocation.

resourceOptions
MTLResourceOptions resourceOptions(MTLResourceOptions )
Undocumented in source.
sampleCount
NSUInteger sampleCount()

The number of samples in each fragment.

sampleCount
NSUInteger sampleCount(NSUInteger )
Undocumented in source.
storageMode
MTLStorageMode storageMode()

The location and access permissions of the texture.

storageMode
MTLStorageMode storageMode(MTLStorageMode )
Undocumented in source.
swizzle
MTLTextureSwizzleChannels swizzle(MTLTextureSwizzleChannels )
Undocumented in source.
swizzle
MTLTextureSwizzleChannels swizzle()

The pattern you want the GPU to apply to pixels when you read or sample pixels from the texture.

textureType
MTLTextureType textureType()

The dimension and arrangement of texture image data.

textureType
MTLTextureType textureType(MTLTextureType )
Undocumented in source.
usage
MTLTextureUsage usage()

Options that determine how you can use the texture.

usage
MTLTextureUsage usage(MTLTextureUsage )
Undocumented in source.
width
NSUInteger width()

The width of the texture image for the base level mipmap, in pixels.

width
NSUInteger width(NSUInteger )
Undocumented in source.

Static functions

alloc
MTLTextureDescriptor alloc()
Undocumented in source.
texture2DDescriptorWithPixelFormat
MTLTextureDescriptor texture2DDescriptorWithPixelFormat(MTLPixelFormat , NSUInteger width, NSUInteger height, BOOL mipmapped)

Creates a texture descriptor object for a 2D texture.

textureBufferDescriptorWithPixelFormat
MTLTextureDescriptor textureBufferDescriptorWithPixelFormat(MTLPixelFormat , NSUInteger width, MTLResourceOptions resourceOptions, MTLTextureUsage usage)

Creates a texture descriptor object for a texture buffer.

textureCubeDescriptorWithPixelFormat
MTLTextureDescriptor textureCubeDescriptorWithPixelFormat(MTLPixelFormat , NSUInteger size, BOOL mipmapped)

Creates a texture descriptor object for a cube texture.

Inherited Members

From NSObject

alloc
NSObject alloc()
Undocumented in source.
initialize
NSObject initialize()
Undocumented in source.
retain
NSObject retain()

Increments the receiver’s reference count.

new_
NSObject new_()

Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object.

release
void release()

Decrements the receiver’s reference count.

dealloc
void dealloc()

Deallocates the memory occupied by the receiver.

autorelease
NSObject autorelease()

Decrements the receiver’s retain count at the end of the current autorelease pool block.

Meta