Struct XrSpatialImageStaticOptimizationEXT
Optional next-chain struct that tells the runtime an image (or database of images) is not
expected to move. Chain to
XrSpatialReferenceImageEXT.next for per-image optimization or
to XrSpatialImageTrackingDatabaseCreateInfoEXT.next
for database-wide optimization. Per-image chaining takes precedence.
Provided by XR_EXT_spatial_image_tracking.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialImageStaticOptimizationEXT
Remarks
Warning
Don't initialize this struct with the default parameterless constructor. Use a constructor with parameters to ensure that type is correctly initialized to SpatialImageStaticOptimizationEXT.
Constructors
XrSpatialImageStaticOptimizationEXT(bool)
Construct an instance with a null next pointer.
Declaration
public XrSpatialImageStaticOptimizationEXT(bool optimizeForStaticImage)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | optimizeForStaticImage |
|
XrSpatialImageStaticOptimizationEXT(void*, bool)
Construct an instance.
Declaration
public XrSpatialImageStaticOptimizationEXT(void* next, bool optimizeForStaticImage)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next |
|
| bool | optimizeForStaticImage |
|
Properties
next
null or a pointer to the next structure in a structure chain.
Declaration
public void* next { get; }
Property Value
| Type | Description |
|---|---|
| void* |
optimizeForStaticImage
Indicates whether images move or not. A value of 1 indicates that images do not move.
Declaration
public uint optimizeForStaticImage { get; }
Property Value
| Type | Description |
|---|---|
| uint |
type
The XrStructureType of this struct: SpatialImageStaticOptimizationEXT.
Declaration
public XrStructureType type { get; }
Property Value
| Type | Description |
|---|---|
| XrStructureType |