Struct XrSpatialBufferEXT
Represents of buffer of variable-sized data contained in spatial component. Provided by XR_EXT_spatial_entity.
Implements
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialBufferEXT : IEquatable<XrSpatialBufferEXT>
Constructors
XrSpatialBufferEXT(ulong, XrSpatialBufferTypeEXT)
Construct an instance.
Declaration
public XrSpatialBufferEXT(ulong bufferId, XrSpatialBufferTypeEXT bufferType)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | bufferId | The buffer ID. |
| XrSpatialBufferTypeEXT | bufferType | The buffer type. |
Properties
bufferId
The ID of the buffer.
Declaration
public ulong bufferId { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
bufferType
The type of data contained in the buffer, used to determine which method to call to retrieve the data.
Declaration
public XrSpatialBufferTypeEXT bufferType { get; }
Property Value
| Type | Description |
|---|---|
| XrSpatialBufferTypeEXT |
Methods
Equals(object)
Compares for equality. Two instances are equal if they share the same buffer ID and buffer type.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The other object. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
Equals(XrSpatialBufferEXT)
Compares for equality. Two instances are equal if they share the same buffer ID and buffer type.
Declaration
public bool Equals(XrSpatialBufferEXT other)
Parameters
| Type | Name | Description |
|---|---|---|
| XrSpatialBufferEXT | other | The other instance. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetHashCode()
Generate a unique hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |