Constructor XRTextureDescriptor
XRTextureDescriptor(IntPtr, int, int, int, TextureFormat, int, int, TextureDimension)
Creates a XRTextureDescriptor.
Declaration
public XRTextureDescriptor(IntPtr nativeTexture, int width, int height, int mipmapCount, TextureFormat format, int propertyNameId, int depth, TextureDimension dimension)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | nativeTexture | Pointer to the native texture. |
| int | width | Width of the native texture. |
| int | height | Height of the native texture. |
| int | mipmapCount | Number of mipmaps in the native texture. |
| TextureFormat | format | Format of the native texture. |
| int | propertyNameId | The unique shader property name ID for the material shader texture. |
| int | depth | Depth dimension of the native texture. Should be one for all except 3D textures. |
| TextureDimension | dimension | Texture dimension of the native texture object. |