Struct XRTextureDescriptor
Contains a native texture object and includes various metadata about the texture.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct XRTextureDescriptor : IEquatable<XRTextureDescriptor>
Properties
Name | Description |
---|---|
depth | This specifies the depth dimension of the native texture. For a 3D texture, depth is greater than zero. For any other kind of valid texture, depth is one. |
dimension | Specifies the texture dimension of the native texture object. |
format | Specifies the texture format of the native texture object. |
height | Specifies the height dimension of the native texture object. |
mipmapCount | Specifies the number of mipmap levels in the native texture object. |
nativeTexture | A pointer to the native texture object. |
propertyNameId | Specifies the unique shader property name ID for the material shader texture. |
valid | Determines whether the texture data references a valid texture object with positive width and height. |
width | Specifies the width dimension of the native texture object. |
Methods
Name | Description |
---|---|
Equals(object) | Tests for equality. |
Equals(XRTextureDescriptor) | Tests for equality. |
GetHashCode() | Generates a hash suitable for use with containers like |
Reset() | Reset the texture descriptor back to default values. |
ToString() | Generates a string suitable for debugging purposes. |
hasIdenticalTextureMetadata(XRTextureDescriptor) | Determines whether the given texture descriptor has identical texture metadata (dimension, mipmap count, and format). |
Operators
Name | Description |
---|---|
operator ==(XRTextureDescriptor, XRTextureDescriptor) | Tests for equality. Same as Equals(XRTextureDescriptor). |
operator !=(XRTextureDescriptor, XRTextureDescriptor) | Tests for inequality. Same as |