MCPcopy Create free account
hub / github.com/cocos/cocos-engine / createXRSwapchains

Method createXRSwapchains

native/cocos/platform/java/modules/XRInterface.cpp:652–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652void XRInterface::createXRSwapchains() {
653#if CC_USE_XR
654 CC_LOG_INFO("[XR] createXRSwapchains");
655 if (gfx::DeviceAgent::getInstance()) {
656 ENQUEUE_MESSAGE_0(gfx::DeviceAgent::getInstance()->getMessageQueue(),
657 CreateXRSwapchains,
658 {
659 CC_LOG_INFO("[XR] [RT] initXrSwapchains");
660 xr::XrEntry::getInstance()->setXRConfig(xr::XRConfigKey::RENDER_THREAD_ID, (int)gettid());
661 JniHelper::getEnv();
662 xr::XrEntry::getInstance()->initXrSwapchains();
663 })
664 } else {
665 xr::XrEntry::getInstance()->initXrSwapchains();
666 }
667#endif
668}
669
670const std::vector<cc::xr::XRSwapchain> &XRInterface::getXRSwapchains() {
671#if CC_USE_XR

Callers 2

createSwapchainMethod · 0.80
createSwapchainMethod · 0.80

Calls 1

setXRConfigMethod · 0.80

Tested by

no test coverage detected