MTLDevice_Extensions.CreateTexture Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a Metal texture with the specified values.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static Metal.IMTLTexture CreateTexture (this Metal.IMTLDevice This, Metal.MTLTextureDescriptor descriptor, IOSurface.IOSurface iosurface, nuint plane);
static member CreateTexture : Metal.IMTLDevice * Metal.MTLTextureDescriptor * IOSurface.IOSurface * nuint -> Metal.IMTLTexture
Parameters
- This
- IMTLDevice
The instance on which this method operates.
- descriptor
- MTLTextureDescriptor
- iosurface
- IOSurface
- plane
- System.System.UIntPtr System.unativeint
Returns
- Attributes