textureBufferDescriptor(with:width:resourceOptions:usage:)
Creates a texture descriptor object for a texture buffer.
Declaration
class func textureBufferDescriptor(with pixelFormat: MTLPixelFormat, width: Int, resourceOptions: MTLResourceOptions = [], usage: MTLTextureUsage) -> MTLTextureDescriptorParameters
- pixelFormat:
The format describing how every pixel on the texture buffer is stored. The default value is Rgba8unorm.
- width:
The width of the texture buffer. The value needs to be greater than or equal to
1. - resourceOptions:
The access options to use for the new texture buffer.
- usage:
The allowed usage of the new texture buffer.
Return Value
A pointer to a texture descriptor object for a texture buffer.