makeTexture(descriptor:)
Creates a new texture instance.
Declaration
func makeTexture(descriptor: MTLTextureDescriptor) -> (any MTLTexture)?Parameters
- descriptor:
An Mtltexturedescriptor instance.
Mentioned in
Return Value
A new MTLTexture instance if the method completed successfully; otherwise nil.