How to develope MR with d3d12 based on openXR?


I try to create session with d3d12, but it is not supported.

How to develope MR with d3d12 based on openXR? My Operating System is win10 18362. Thanks.

uint32_t extensionCount;
            CHECK_XRCMD(xrEnumerateInstanceExtensionProperties(nullptr, 0, &extensionCount, nullptr));
            std::vector<XrExtensionProperties> extensionProperties(extensionCount, {XR_TYPE_EXTENSION_PROPERTIES});
            CHECK_XRCMD(xrEnumerateInstanceExtensionProperties(nullptr, extensionCount, &extensionCount,;

            std::vector<const char*> enabledExtensions;

            // Add a specific extension to the list of extensions to be enabled, if it is supported.
            auto EnableExtentionIfSupported = [&](const char* extensionName) {
                for (uint32_t i = 0; i < extensionCount; i++) {
                    if (strcmp(extensionProperties[i].extensionName, extensionName) == 0) {
                        return true;
                return false;

            // check if it's supported.
CHECK(EnableExtentionIfSupported(XR_KHR_D3D11_ENABLE_EXTENSION_NAME));  // ok
CHECK(EnableExtentionIfSupported(XR_KHR_D3D12_ENABLE_EXTENSION_NAME)); // failed