Struct XrSpatialCapabilityComponentTypesEXT
Used by OpenXRNativeApi.xrEnumerateSpatialCapabilityComponentTypesEXT
to get the supported
component types for a given capability. Provided by XR_EXT_spatial_entity
.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public struct XrSpatialCapabilityComponentTypesEXT
Remarks
Warning
Don't initialize this struct with the default parameterless constructor. Use either defaultValue or a constructor with parameters to ensure that type is correctly initialized to SpatialCapabilityComponentTypesEXT.
Constructors
XrSpatialCapabilityComponentTypesEXT(uint, uint, XrSpatialComponentTypeEXT*)
Construct an instance with a null
next pointer.
Declaration
public XrSpatialCapabilityComponentTypesEXT(uint componentTypeCapacityInput, uint componentTypeCountOutput, XrSpatialComponentTypeEXT* componentTypes)
Parameters
Type | Name | Description |
---|---|---|
uint | componentTypeCapacityInput | The capacity input. |
uint | componentTypeCountOutput | The count output |
XrSpatialComponentTypeEXT* | componentTypes | Pointer to an array of component types. |
See Also
XrSpatialCapabilityComponentTypesEXT(void*, uint, uint, XrSpatialComponentTypeEXT*)
Construct an instance.
Declaration
public XrSpatialCapabilityComponentTypesEXT(void* next, uint componentTypeCapacityInput, uint componentTypeCountOutput, XrSpatialComponentTypeEXT* componentTypes)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
uint | componentTypeCapacityInput | The capacity input. |
uint | componentTypeCountOutput | The count output |
XrSpatialComponentTypeEXT* | componentTypes | Pointer to an array of component types. |
See Also
Properties
componentTypeCapacityInput
The capacity of the array, or 0
to indicate a request to retrieve the required capacity.
Declaration
public uint componentTypeCapacityInput { readonly get; set; }
Property Value
Type | Description |
---|---|
uint |
See Also
componentTypeCountOutput
The number of component types, or the required capacity in the case that componentTypeCapacityInput is insufficient.
Declaration
public uint componentTypeCountOutput { readonly get; set; }
Property Value
Type | Description |
---|---|
uint |
See Also
componentTypes
Pointer to an array of component types.
Can be null
if componentTypeCapacityInput is 0
.
Declaration
public XrSpatialComponentTypeEXT* componentTypes { readonly get; set; }
Property Value
Type | Description |
---|---|
XrSpatialComponentTypeEXT* |
See Also
defaultValue
Get a default instance with an initialized type property.
Declaration
public static XrSpatialCapabilityComponentTypesEXT defaultValue { get; }
Property Value
Type | Description |
---|---|
XrSpatialCapabilityComponentTypesEXT |
See Also
next
null
or a pointer to the next structure in a structure chain.
No such structures are defined in core OpenXR or this extension.
Declaration
public void* next { readonly get; set; }
Property Value
Type | Description |
---|---|
void* |
See Also
type
The XrStructureType
of this struct: SpatialCapabilityComponentTypesEXT.
Declaration
public readonly XrStructureType type { get; }
Property Value
Type | Description |
---|---|
XrStructureType |