init(texture:)
Creates a new Lowleveldeviceresource from the specified Metal texture. This is not available on visionOS; device resources on this platform must be initialized from a shared texture using init(sharedTextureHandle:) instead.
Declaration
init(texture: any MTLTexture)Parameters
- texture:
The underlying texture for this memory resource.