init(texture:level:slice:depthPlane:)
Creates a texture reference with the given texture, mip level, slice, and depth plane.
Declaration
init(texture: any MTLTexture, level: Int = 0, slice: Int = 0, depthPlane: Int = 0)Parameters
- texture:
The underlying Metal texture.
- level:
The mipmap level of the texture to use. Defaults to
0. - slice:
The slice of the texture to use. Defaults to
0. - depthPlane:
The depth plane of the texture to use. Defaults to
0.