C Specification

The XrApiLayerNextInfo structure is defined as:

typedef struct XrApiLayerNextInfo {
    XrLoaderInterfaceStructs        structType;
    uint32_t                        structVersion;
    size_t                          structSize;
    char                            layerName[XR_MAX_API_LAYER_NAME_SIZE];
    PFN_xrGetInstanceProcAddr       nextGetInstanceProcAddr;
    PFN_xrCreateApiLayerInstance    nextCreateApiLayerInstance;
    struct XrApiLayerNextInfo*      next;
} XrApiLayerNextInfo;

Members

Member Descriptions
  • structType must be XR_LOADER_INTERFACE_STRUCT_API_LAYER_NEXT_INFO

  • structVersion must be a valid version of the structure and the version being supplied by the loader (i.e. XR_API_LAYER_NEXT_INFO_STRUCT_VERSION).

  • structSize must be the size in bytes of the current version of the structure (i.e. sizeof(XrApiLayerNextInfo))

  • layerName is the name of the intended next API layer, used to verify and debug the API layer chain.

  • nextGetInstanceProcAddr is a pointer to the next API layer’s xrGetInstanceProcAddr. This is intended for use in populating a dispatch table to the next implementations in the chain.

  • nextCreateApiLayerInstance is a pointer to the xrCreateApiLayerInstance function implementation in the next API layer. This is to be called after the API layer has done any localized creation, but before the API layer records any function addresses from the next API layer using xrGetInstanceProcAddr.

  • next is a pointer to the XrApiLayerNextInfo for the next API layer. If no API layer is after this, it will be NULL.

Description

Valid Usage (Implicit)

See Also

Document Notes

For more information, see the OpenXR Specification

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2024, The Khronos Group Inc.