Struct ARGpuTexture
Represents an external texture and its property name ID.
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
public readonly struct ARGpuTexture
Constructors
ARGpuTexture(Texture, int)
Constructor.
Declaration
public ARGpuTexture(Texture texture, int propertyId)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | The texture. |
int | propertyId | The texture's property name ID. |
Properties
propertyId
ID of the shader property associated with this texture.
Declaration
public int propertyId { get; }
Property Value
Type | Description |
---|---|
int |
See Also
texture
An external texture that exists only on the GPU. To use the texture on the CPU, you must read it back from the GPU using Texture2D.ReadPixels.
Declaration
public Texture texture { get; }
Property Value
Type | Description |
---|---|
Texture |